C# Class DotNetOpenAuth.OAuth2.WebServerClient

An OAuth 2.0 consumer designed for web applications.
Inheritance: ClientBase
Show file Open project: OneCare/dotnetopenid Class Usage Examples

Public Methods

Method Description
PrepareRequestUserAuthorization ( IAuthorizationState authorization ) : DotNetOpenAuth.Messaging.OutgoingWebResponse

Prepares a request for user authorization from an authorization server.

PrepareRequestUserAuthorization ( IEnumerable scopes = null, Uri returnTo = null ) : DotNetOpenAuth.Messaging.OutgoingWebResponse

Prepares a request for user authorization from an authorization server.

ProcessUserAuthorization ( System.Web.HttpRequestBase request = null ) : IAuthorizationState

Processes the authorization response from an authorization server, if available.

RequestUserAuthorization ( IEnumerable scope = null, Uri returnTo = null ) : void

Prepares a request for user authorization from an authorization server.

WebServerClient ( DotNetOpenAuth.OAuth2.AuthorizationServerDescription authorizationServer, string clientIdentifier = null, string clientSecret = null ) : System

Initializes a new instance of the WebServerClient class.

Method Details

PrepareRequestUserAuthorization() public method

Prepares a request for user authorization from an authorization server.
public PrepareRequestUserAuthorization ( IAuthorizationState authorization ) : DotNetOpenAuth.Messaging.OutgoingWebResponse
authorization IAuthorizationState The authorization state to associate with this particular request.
return DotNetOpenAuth.Messaging.OutgoingWebResponse

PrepareRequestUserAuthorization() public method

Prepares a request for user authorization from an authorization server.
public PrepareRequestUserAuthorization ( IEnumerable scopes = null, Uri returnTo = null ) : DotNetOpenAuth.Messaging.OutgoingWebResponse
scopes IEnumerable The scope of authorized access requested.
returnTo System.Uri The URL the authorization server should redirect the browser (typically on this site) to when the authorization is completed. If null, the current request's URL will be used.
return DotNetOpenAuth.Messaging.OutgoingWebResponse

ProcessUserAuthorization() public method

Processes the authorization response from an authorization server, if available.
public ProcessUserAuthorization ( System.Web.HttpRequestBase request = null ) : IAuthorizationState
request System.Web.HttpRequestBase The incoming HTTP request that may carry an authorization response.
return IAuthorizationState

RequestUserAuthorization() public method

Prepares a request for user authorization from an authorization server.
public RequestUserAuthorization ( IEnumerable scope = null, Uri returnTo = null ) : void
scope IEnumerable The scope of authorized access requested.
returnTo System.Uri The URL the authorization server should redirect the browser (typically on this site) to when the authorization is completed. If null, the current request's URL will be used.
return void

WebServerClient() public method

Initializes a new instance of the WebServerClient class.
public WebServerClient ( DotNetOpenAuth.OAuth2.AuthorizationServerDescription authorizationServer, string clientIdentifier = null, string clientSecret = null ) : System
authorizationServer DotNetOpenAuth.OAuth2.AuthorizationServerDescription The authorization server.
clientIdentifier string The client identifier.
clientSecret string The client secret.
return System