Skip to content

[AZINTS-4137] Enrich app reg access errors with instructions#72

Merged
benjjs merged 1 commit into
mainfrom
benjamin.johnsonstaub/azints-4137/add-app-reg-permission-instructions
Oct 31, 2025
Merged

[AZINTS-4137] Enrich app reg access errors with instructions#72
benjjs merged 1 commit into
mainfrom
benjamin.johnsonstaub/azints-4137/add-app-reg-permission-instructions

Conversation

@benjjs
Copy link
Copy Markdown
Collaborator

@benjjs benjjs commented Oct 31, 2025

Motivation

We have seen at least one case of users getting to the app_registration step without the proper permissions, most likely because of inconsistent propagation delay for newly granted permissions. Since this is something outside of our control but within the user's (by waiting), we should account for this and display an informative error to the user.

Summary

Enrich any access errors we encounter while trying to create an app registration with an informative message. The message points them to the relevant place in our docs where we describe how to get the permissions they need (in case they really don't have the permissions and we failed to check this earlier), and ask them to allow up to an hour for the permissions to propagate (I got this number from Azure, pain).

Testing

Spoof an access error in the create app registration step, connect onboarding flow to local script, and submit some selections:
Screenshot 2025-10-31 at 5 28 00 PM

Not the prettiest thing in the world but if we want the errors to live in one place in the script (as opposed to having custom displays for different errors), this is about the best we can do I think. I do plan on increasing the width of the error modal which will help somewhat I think.

@benjjs benjjs requested a review from a team as a code owner October 31, 2025 21:37
@benjjs benjjs merged commit 796cdb8 into main Oct 31, 2025
2 checks passed
@benjjs benjjs deleted the benjamin.johnsonstaub/azints-4137/add-app-reg-permission-instructions branch October 31, 2025 21:47
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