Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Acquiring tokens for resources fails with consnet issues #42

Open
richardspence opened this issue Mar 3, 2016 · 0 comments
Open

Acquiring tokens for resources fails with consnet issues #42

richardspence opened this issue Mar 3, 2016 · 0 comments

Comments

@richardspence
Copy link

Basically updating an app to talk to more resources ultimately breaks existing users that are already onboarded to the app. The workaround we have to this is to have users remove the app from their list of consented apps so that upon the next login Azure would ask for consent again.

Repro:

  1. Create an app in AAD
  2. User "Bob" logins in to app
  3. App is updated with perms to talk to another resource (say Graph or service ABC)
  4. Acquire delegation token for Graph or ABC
  5. It fails due to user consent.

The fix I think would be to capture the consent failure, generate a login url and append context &prompt=consent.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant