C# 클래스 DotNetOpenAuth.OAuth2.WebServerClient

An OAuth 2.0 consumer designed for web applications.
상속: ClientBase
파일 보기 프로젝트 열기: OneCare/dotnetopenid 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

PrepareRequestUserAuthorization() 공개 메소드

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.
리턴 DotNetOpenAuth.Messaging.OutgoingWebResponse

PrepareRequestUserAuthorization() 공개 메소드

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.
리턴 DotNetOpenAuth.Messaging.OutgoingWebResponse

ProcessUserAuthorization() 공개 메소드

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.
리턴 IAuthorizationState

RequestUserAuthorization() 공개 메소드

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.
리턴 void

WebServerClient() 공개 메소드

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.
리턴 System