Skip to content
This repository has been archived by the owner on Jul 31, 2019. It is now read-only.

Admin Consent version? #46

Open
mhomol opened this issue Jan 4, 2017 · 1 comment
Open

Admin Consent version? #46

mhomol opened this issue Jan 4, 2017 · 1 comment

Comments

@mhomol
Copy link

mhomol commented Jan 4, 2017

Does anyone know what a modified version of this would look like that would do the Admin consent prompt from Azure for Restricted Scopes? That would be incredibly valuable in this sample.

@VitorX
Copy link

VitorX commented Feb 14, 2017

If we are developing an single-tenant and register the app from the Azure portal or Azure classic portal, there is no need to use the admin consent. When we register the app, the admin consent already be granted.

And if you want to use the admin consent in any web app supports Katana, we can add this parameter using the code below:

Notifications = new OpenIdConnectAuthenticationNotifications()
{
          RedirectToIdentityProvider= context => {
                     context.ProtocolMessage.Prompt = "admin_consent";
                      return Task.FromResult(0);
          }
}

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

2 participants