Skip to content

Commit

Permalink
Add 'Prompt' property for auth URL (#1190)
Browse files Browse the repository at this point in the history
Fixes #1185
  • Loading branch information
chrisdunelm authored Apr 16, 2018
1 parent 7c41f17 commit 962440e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ public void TestConstructor()
Assert.Null(request.Scope);
Assert.Null(request.State);
Assert.Equal("offline", request.AccessType);
#pragma warning disable CS0618 // Type or member is obsolete
Assert.Null(request.ApprovalPrompt);
#pragma warning restore CS0618 // Type or member is obsolete
Assert.Null(request.Prompt);
Assert.Null(request.LoginHint);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,21 @@ public class GoogleAuthorizationCodeRequestUrl : AuthorizationCodeRequestUrl
[Google.Apis.Util.RequestParameterAttribute("access_type", Google.Apis.Util.RequestParameterType.Query)]
public string AccessType { get; set; }

/// <summary>
/// Gets of sets prompt for consent behaviour.
/// Value can be <c>null</c>, <c>"none"</c>, <c>"consent"</c>, or <c>"select_account"</c>.
/// See <a href="https://developers.google.com/identity/protocols/OpenIDConnect#prompt">OpenIDConnect documentation</a>
/// for details.
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("prompt", Google.Apis.Util.RequestParameterType.Query)]
public string Prompt { get; set; }

/// <summary>
/// Gets or sets prompt for consent behavior <c>auto</c> to request auto-approval or<c>force</c> to force the
/// approval UI to show, or <c>null</c> for the default behavior.
/// </summary>
[Google.Apis.Util.RequestParameterAttribute("approval_prompt", Google.Apis.Util.RequestParameterType.Query)]
[Obsolete("Unused for Google OpenID; use the 'Prompt' property instead.")]
public string ApprovalPrompt { get; set; }

/// <summary>
Expand Down

0 comments on commit 962440e

Please sign in to comment.