C# 클래스 BrockAllen.OAuth2.OAuth2Client

파일 보기 프로젝트 열기: brockallen/BrockAllen.OAuth2 1 사용 예제들

공개 메소드들

메소드 설명
OAuth2Client ( ProviderType providerType, string clientID, string clientSecret, string scope = null ) : Newtonsoft.Json.Linq
ProcessCallbackAsync ( ) : Task
RedirectToAuthorizationProvider ( ProviderType providerType, string returnUrl = null ) : void
RegisterCustomOAuthCallback ( RouteCollection routes, string action, string controller, string area = null ) : void
RegisterProvider ( ProviderType providerType, string clientID, string clientSecret, string scope = null, NameValueCollection additionalParameters = null ) : void

비공개 메소드들

메소드 설명
GetContext ( ) : AuthorizationContext
GetProvider ( ProviderType providerType ) : Provider
OAuth2Client ( ) : Newtonsoft.Json.Linq
Protect ( byte data ) : string
SaveContext ( AuthorizationContext authCtx ) : void
Unprotect ( string value ) : byte[]

메소드 상세

OAuth2Client() 공개 메소드

public OAuth2Client ( ProviderType providerType, string clientID, string clientSecret, string scope = null ) : Newtonsoft.Json.Linq
providerType ProviderType
clientID string
clientSecret string
scope string
리턴 Newtonsoft.Json.Linq

ProcessCallbackAsync() 공개 메소드

public ProcessCallbackAsync ( ) : Task
리턴 Task

RedirectToAuthorizationProvider() 공개 메소드

public RedirectToAuthorizationProvider ( ProviderType providerType, string returnUrl = null ) : void
providerType ProviderType
returnUrl string
리턴 void

RegisterCustomOAuthCallback() 공개 정적인 메소드

public static RegisterCustomOAuthCallback ( RouteCollection routes, string action, string controller, string area = null ) : void
routes RouteCollection
action string
controller string
area string
리턴 void

RegisterProvider() 공개 메소드

public RegisterProvider ( ProviderType providerType, string clientID, string clientSecret, string scope = null, NameValueCollection additionalParameters = null ) : void
providerType ProviderType
clientID string
clientSecret string
scope string
additionalParameters System.Collections.Specialized.NameValueCollection
리턴 void