Browse Source
Add a global prompt setting to the Google web provider
pull/2429/head
Stella
4 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
4 additions and
0 deletions
src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs
src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml
@ -1924,6 +1924,7 @@ public static partial class OpenIddictClientWebIntegrationHandlers
var settings = context . Registration . GetGoogleSettings ( ) ;
var settings = context . Registration . GetGoogleSettings ( ) ;
context . Request [ "access_type" ] = settings . AccessType ;
context . Request [ "access_type" ] = settings . AccessType ;
context . Request . Prompt = settings . Prompt ;
}
}
// By default, Huawei doesn't return a refresh token but allows sending an "access_type"
// By default, Huawei doesn't return a refresh token but allows sending an "access_type"
@ -1129,6 +1129,9 @@
<Setting PropertyName= "AccessType" ParameterName= "type" Type= "String" Required= "false"
<Setting PropertyName= "AccessType" ParameterName= "type" Type= "String" Required= "false"
Description="The value used as the 'access_type' parameter (can be set to 'offline' to retrieve a refresh token)" />
Description="The value used as the 'access_type' parameter (can be set to 'offline' to retrieve a refresh token)" />
<Setting PropertyName= "Prompt" ParameterName= "prompt" Type= "String" Required= "false"
Description="The value used as the 'prompt' parameter: can be set to none, consent (triggers a consent prompt on every session) or select_account (allows the user to select which account to use on each session)" />
</Provider>
</Provider>
<!--
<!--