-
Notifications
You must be signed in to change notification settings - Fork 158
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
feature(oidc):preload user (alpha) #1352
Conversation
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-rock-0dc6b0d03-1352.westeurope.1.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-glacier-004ab4303-1352.westeurope.2.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-rock-0dc6b0d03-1352.westeurope.1.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-glacier-004ab4303-1352.westeurope.2.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-rock-0dc6b0d03-1352.westeurope.1.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://icy-glacier-004ab4303-1352.westeurope.2.azurestaticapps.net |
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
This commit updates the @axa-fr/react-oidc package to it's latest version, 7.22.4 (NOTE: This version was released yesterday), to use it's latest feature, user preload. Currently, the useOidcUser hook runs async, which makes it a pain to couple with subsequent hooks. However, [as added in the latest version](AxaFrance/oidc-client#1352), we can explicitly set a configuration variable to await the loading of the user data. Since we need to grapple the oidc user authentication id with the authentication id in the database in order to get the DATABASE user id, which is also done via an async hook, this seems like the correct approach. Issue #702 Get User's Id For Use in Dependent API Calls seems to be the correct approach until
A picture tells a thousand words
Before this PR
After this PR