-
Notifications
You must be signed in to change notification settings - Fork 4
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
[#174823724] Add token name to GetUser from Azure ADB2C #84
Conversation
Affected stories
Generated by 🚫 dangerJS |
Codecov Report
@@ Coverage Diff @@
## master #84 +/- ##
==========================================
- Coverage 86.62% 85.04% -1.59%
==========================================
Files 39 41 +2
Lines 1249 1371 +122
Branches 88 114 +26
==========================================
+ Hits 1082 1166 +84
- Misses 166 200 +34
- Partials 1 5 +4
Continue to review full report at Codecov.
|
adb2User[ | ||
`adb2User.extension_${adb2cCredentials.clientId}_token_name` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if the user does not have this attribute ? (may you try to delete ti into the ADB2C and call GetUser?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that many users will not have this attribute on ADB2C. In that case token_name
should be null and it will remain null until we add it on Active Directory. Why should we delete the user if it does not have token_name
?
This PR is useful to retrieve custom extension property
token_name
from Azure AD B2C, while callingGetUser
API. Property value is also mapped intoUserInfo
API model in order to make possible info's propagation to io-functions-services.