summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/OAuth2/WebServerClient.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth/OAuth2/WebServerClient.cs b/src/DotNetOpenAuth/OAuth2/WebServerClient.cs
index 467d7d3..ff63f46 100644
--- a/src/DotNetOpenAuth/OAuth2/WebServerClient.cs
+++ b/src/DotNetOpenAuth/OAuth2/WebServerClient.cs
@@ -38,6 +38,17 @@ namespace DotNetOpenAuth.OAuth2 {
/// <summary>
/// Prepares a request for user authorization from an authorization server.
/// </summary>
+ /// <param name="scope">The scope of authorized access requested.</param>
+ /// <returns>The authorization request as an HTTP response that causes a redirect.</returns>
+ public OutgoingWebResponse RequestUserAuthorization(string scope = null) {
+ var response = this.PrepareRequestUserAuthorization(scope);
+ return this.Channel.PrepareResponse(response);
+ }
+
+ /// <summary>
+ /// Prepares a request for user authorization from an authorization server.
+ /// </summary>
+ /// <param name="scope">The scope of authorized access requested.</param>
/// <returns>The authorization request.</returns>
public EndUserAuthorizationRequest PrepareRequestUserAuthorization(string scope = null) {
var authorizationState = new AuthorizationState { Scope = scope };