diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-03 16:36:51 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-03 16:36:51 -0800 |
commit | a57b51806ceebaa64db730809d6d7fd07c5b42ce (patch) | |
tree | abbe0666f8ee621b72c339d341b45b86e1346cb5 /src/DotNetOpenAuth.OAuth2.AuthorizationServer | |
parent | 475b47ab8eaa23e064763b05539fa750accebfdc (diff) | |
download | DotNetOpenAuth-a57b51806ceebaa64db730809d6d7fd07c5b42ce.zip DotNetOpenAuth-a57b51806ceebaa64db730809d6d7fd07c5b42ce.tar.gz DotNetOpenAuth-a57b51806ceebaa64db730809d6d7fd07c5b42ce.tar.bz2 |
Adds OpenID RP to WebAPI sample so it's a real login.
Diffstat (limited to 'src/DotNetOpenAuth.OAuth2.AuthorizationServer')
-rw-r--r-- | src/DotNetOpenAuth.OAuth2.AuthorizationServer/OAuth2/AuthorizationServer.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.OAuth2.AuthorizationServer/OAuth2/AuthorizationServer.cs b/src/DotNetOpenAuth.OAuth2.AuthorizationServer/OAuth2/AuthorizationServer.cs index 5b287cc..cd603eb 100644 --- a/src/DotNetOpenAuth.OAuth2.AuthorizationServer/OAuth2/AuthorizationServer.cs +++ b/src/DotNetOpenAuth.OAuth2.AuthorizationServer/OAuth2/AuthorizationServer.cs @@ -110,6 +110,21 @@ namespace DotNetOpenAuth.OAuth2 { } /// <summary> + /// Reads in a client's request for the Authorization Server to obtain permission from + /// the user to authorize the Client's access of some protected resource(s). + /// </summary> + /// <param name="requestUri">The URL that carries the authorization request.</param> + /// <param name="cancellationToken">The cancellation token.</param> + /// <returns> + /// The incoming request, or null if no OAuth message was attached. + /// </returns> + /// <exception cref="ProtocolException">Thrown if an unexpected OAuth message is attached to the incoming request.</exception> + public Task<EndUserAuthorizationRequest> ReadAuthorizationRequestAsync(Uri requestUri, CancellationToken cancellationToken = default(CancellationToken)) { + var httpInfo = HttpRequestInfo.Create(HttpMethod.Get.Method, requestUri); + return this.ReadAuthorizationRequestAsync(httpInfo, cancellationToken); + } + + /// <summary> /// Handles an incoming request to the authorization server's token endpoint. /// </summary> /// <param name="request">The HTTP request.</param> |