Merge pull request #256 from alagendijk-minddistrict/fix-azure-consent-prompt

Don't force consent screen for every Azure AD login
This commit is contained in:
Bobby DeSimone 2019-08-07 09:41:54 -07:00 committed by GitHub
commit 8e08ac4eab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -140,7 +140,7 @@ func (p *AzureProvider) Revoke(token string) error {
// GetSignInURL returns the sign in url with typical oauth parameters
func (p *AzureProvider) GetSignInURL(state string) string {
return p.oauth.AuthCodeURL(state, oauth2.AccessTypeOffline, oauth2.ApprovalForce)
return p.oauth.AuthCodeURL(state, oauth2.AccessTypeOffline, oauth2.SetAuthURLParam("prompt", "select_account"))
}
// Refresh renews a user's session using an oid refresh token without reprompting the user.