Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding "otherMails" #171

Merged
merged 3 commits into from
Dec 19, 2024
Merged

adding "otherMails" #171

merged 3 commits into from
Dec 19, 2024

Conversation

ejdysinger
Copy link
Contributor

Added otherMails claim to b2c policy; when a user's IdP doesn't return an email claim, the user is able to manually specify an email which is retained in the b2c user account in an otherMail attribute. Subsequent logins will not return that email so we must return the otherMails, a string collection, and select the first member of that collection as the email of last resort before an error is generated.

Eamon Dysinger added 2 commits December 18, 2024 09:23
…n no email claim is returned from IdP, and logic to select the first of those returned otherMails as email as last choice
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://jolly-wave-082988910-171.centralus.4.azurestaticapps.net

@@ -21,8 +21,6 @@ export async function findOrCreateUserDetails(
given_name: true,
idp: true,
issuer: true,
organization: true,
phone: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these causing issues? If not we'd like to collect them if they are provided.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not causing issues, just not generally returned. I'm content to leave them if you'd prefer

Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://jolly-wave-082988910-171.centralus.4.azurestaticapps.net

@ejdysinger ejdysinger merged commit 1cf0d6e into staging Dec 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants