Skip to content

Commit ef0092a

Browse files
authored
Add a global prompt setting to the Google web provider
1 parent 7b9fd76 commit ef0092a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationHandlers.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,6 +1924,7 @@ public ValueTask HandleAsync(ProcessChallengeContext context)
19241924
var settings = context.Registration.GetGoogleSettings();
19251925

19261926
context.Request["access_type"] = settings.AccessType;
1927+
context.Request.Prompt = settings.Prompt;
19271928
}
19281929

19291930
// By default, Huawei doesn't return a refresh token but allows sending an "access_type"

src/OpenIddict.Client.WebIntegration/OpenIddictClientWebIntegrationProviders.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,9 @@
11291129

11301130
<Setting PropertyName="AccessType" ParameterName="type" Type="String" Required="false"
11311131
Description="The value used as the 'access_type' parameter (can be set to 'offline' to retrieve a refresh token)" />
1132+
1133+
<Setting PropertyName="Prompt" ParameterName="prompt" Type="String" Required="false"
1134+
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)" />
11321135
</Provider>
11331136

11341137
<!--

0 commit comments

Comments
 (0)