Browse Source

Add a global prompt setting to the Google web provider

pull/2429/head
Stella 4 weeks ago
committed by GitHub
parent
commit
ef0092a1fc
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs
  2. 3
      src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml

1
src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs

@ -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"

3
src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml

@ -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>
<!-- <!--

Loading…
Cancel
Save