Closed
Description
- Using AzureAD OIDC provider with OSS.
- Coder fails with email_verified claim missing please verify email address.
- AzureAD does not emit this claim by default. See https://docs.microsoft.com/en-us/answers/questions/812672/microsoft-openid-connect-getting-verified-email.html
- After adding custom claim to AzureAD it errors with:
{"message":"Failed to extract OIDC claims.","detail":"json: cannot unmarshal string into Go struct field .email_verified of type bool"}
- I don't see how to configure AzureAD to have that come through as a bool instead of string.
Ideally there would be ability to disable/adjust this verification option based on OIDC provider. At the moment it just fails without option:
Line 227 in ad24404
Metadata
Metadata
Assignees
Labels
No labels
Activity
kylecarbs commentedon Sep 8, 2022
Makes sense. I'll fix this today and publish a new release!
kylecarbs commentedon Sep 8, 2022
@dcarrion87 I'm making this only respect
email_verified
if it's provided... that seems like it should work!fix: Optionally consume `email_verified` if it's provided
email_verified
if it's provided #3957kylecarbs commentedon Sep 8, 2022
@dcarrion87 v0.8.14 is coming out now! https://github.com/coder/coder/runs/8251205763?check_suite_focus=true
kylecarbs commentedon Sep 8, 2022
It's out 🥳