alan-turing-institute / data-safe-haven

https://data-safe-haven.readthedocs.io
BSD 3-Clause "New" or "Revised" License
57 stars 15 forks source link

Offer opportunity to log in again when credentials are incorrect #2153

Open craddm opened 1 month ago

craddm commented 1 month ago

:white_check_mark: Checklist

:strawberry: Suggested change

If an administrator logs in using the wrong MS Graph credential during deployment, it isn't at all clear how they can correct their mistake. For the Azure admin account, it's easy - just run az login. But it isn't at all clear what to do for MS Graph.

:steam_locomotive: How could this be done?

Offer an option to log in again when the credential is incorrect, instead of just offering yes/no.

Possible simpler possibility is to tell people to delete the cached credential (or delete it for them) - see https://github.com/craddm/data-safe-haven/tree/delete-graph-cred (can PR once 5.0.0 merged with develop)