-
Notifications
You must be signed in to change notification settings - Fork 93
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
Fix: Set consent-type property #2465
Conversation
Azure Static Web Apps: Your stage site is ready! Visit it here: https://jolly-sand-0ac78c710-2465.centralus.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://jolly-sand-0ac78c710-2465.centralus.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://jolly-sand-0ac78c710-2465.centralus.azurestaticapps.net |
1 similar comment
Azure Static Web Apps: Your stage site is ready! Visit it here: https://jolly-sand-0ac78c710-2465.centralus.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://jolly-sand-0ac78c710-2465.centralus.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://jolly-sand-0ac78c710-2465.centralus.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://jolly-sand-0ac78c710-2465.centralus.azurestaticapps.net |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://jolly-sand-0ac78c710-2465.centralus.azurestaticapps.net |
Kudos, SonarCloud Quality Gate passed! |
Overview
Fixes #2439
Demo
A spinner becomes available when the consent-type property is being fetched
When the fetch fails, a retry button is available to re-fetch the consent-type property
Notes
The API call that returns the grants of the tenant takes time to return an updated grant after granting consent. For this reason, we have to poll the endpoint until we have an update.
The identity endpoints read data from eventually consistent datastores. This means that after updating a field, it takes time for all nodes to achieve the same state(eventual consistency). This means that calling the endpoint for updated data might still return stale data even after a write.
For this reason, we have to keep polling the endpoint until we get the response that we expect. This is why we have a loop that continuously calls the grant endpoint until we have an updated grant.
Testing Instructions
Sign in with your account
Notice that all consent-type properties are available for consented permissions
Consent to a permission and notice the spinner just before the consent-type property is updated
Click on the retry button to re-fetch the consent-type property