Mock OIDC IdP สำหรับ Cloudflare Access
จำลอง IdP ของบริษัท (แทน Keycloak / Authentik / Entra) บัญชี staff ไม่มีอีเมลจริง ใช้ username + รหัสผ่าน
✅ IdP พร้อมใช้งาน
ค่าที่ต้องกรอกใน Zero Trust → Login methods → OpenID Connect
| Name | Lab Staff IdP |
| App ID (Client ID) | cf-access-lab |
| Client secret | ค่าเดียวกับ Secret IDP_CLIENT_SECRET |
| Auth URL | https://lab-idp.tfdbot.online/authorize |
| Token URL | https://lab-idp.tfdbot.online/token |
| Certificate URL | https://lab-idp.tfdbot.online/jwks |
| Proof Key for Code Exchange (PKCE) | เปิดหรือปิดก็ได้ (รองรับ S256) |
| OIDC Claims (optional) | groups, preferred_username |
บัญชี staff (รหัสผ่าน = Secret IDP_PASSWORD)
| Username | ชื่อ | กลุ่ม (groups) | email claim |
|---|---|---|---|
sup01 | หัวหน้างาน 01 | supervisor | sup01@staff.tfdbot.online |
sup02 | หัวหน้างาน 02 | supervisor | sup02@staff.tfdbot.online |
it01 | IT Support 01 | it | it01@staff.tfdbot.online |
admin01 | System Admin 01 | admin | admin01@staff.tfdbot.online |
อีเมลเป็นชื่อสมมติ ไม่ต้องมีกล่องจดหมาย Access ใช้เป็นตัวระบุผู้ใช้เท่านั้น · งานจริงใช้ Keycloak/Authentik ที่เชื่อม AD/LDAP ของลูกค้า