C# 클래스 SimpleAuth.OAuthApi

상속: Api
파일 보기 프로젝트 열기: Clancey/SimpleAuth 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
authenticator WebAuthenticator

공개 메소드들

메소드 설명
OAuthApi ( string identifier, OAuthAuthenticator authenticator, HttpMessageHandler handler = null ) : System

Initializes a new instance of the T:SimpleAuth.OAuthApi class.

OAuthApi ( string identifier, string clientId, string clientSecret, string tokenUrl, string authorizationUrl, string redirectUrl = "http://localhost", HttpMessageHandler handler = null ) : System

Initializes a new instance of the T:SimpleAuth.OAuthApi class.

PrepareClient ( HttpClient client ) : System.Threading.Tasks.Task
ResetData ( ) : void

보호된 메소드들

메소드 설명
CreateAuthenticator ( ) : WebAuthenticator
GetAccountFromAuthCode ( WebAuthenticator authenticator, string identifier ) : Task
OAuthApi ( string identifier, string clientId, string clientSecret, HttpMessageHandler handler = null ) : System
PerformAuthenticate ( ) : Task
RefreshAccount ( Account account ) : Task
RefreshToken ( Account accaccount ) : Task

비공개 메소드들

메소드 설명
OAuthApi ( ) : System

메소드 상세

CreateAuthenticator() 보호된 메소드

protected CreateAuthenticator ( ) : WebAuthenticator
리턴 WebAuthenticator

GetAccountFromAuthCode() 보호된 메소드

protected GetAccountFromAuthCode ( WebAuthenticator authenticator, string identifier ) : Task
authenticator WebAuthenticator
identifier string
리턴 Task

OAuthApi() 공개 메소드

Initializes a new instance of the T:SimpleAuth.OAuthApi class.
public OAuthApi ( string identifier, OAuthAuthenticator authenticator, HttpMessageHandler handler = null ) : System
identifier string This is used to store and look up credentials/cookies for the API
authenticator OAuthAuthenticator OAuth Authenticator.
handler System.Net.Http.HttpMessageHandler Handler.
리턴 System

OAuthApi() 보호된 메소드

protected OAuthApi ( string identifier, string clientId, string clientSecret, HttpMessageHandler handler = null ) : System
identifier string
clientId string
clientSecret string
handler System.Net.Http.HttpMessageHandler
리턴 System

OAuthApi() 공개 메소드

Initializes a new instance of the T:SimpleAuth.OAuthApi class.
public OAuthApi ( string identifier, string clientId, string clientSecret, string tokenUrl, string authorizationUrl, string redirectUrl = "http://localhost", HttpMessageHandler handler = null ) : System
identifier string This is used to store and look up credentials/cookies for the API
clientId string OAuth Client identifier.
clientSecret string OAuth Client secret.
tokenUrl string URL for swaping out the token.
authorizationUrl string Login website URL.
redirectUrl string Redirect URL. Defaults to http://localhost
handler System.Net.Http.HttpMessageHandler Handler.
리턴 System

PerformAuthenticate() 보호된 메소드

protected PerformAuthenticate ( ) : Task
리턴 Task

PrepareClient() 공개 메소드

public PrepareClient ( HttpClient client ) : System.Threading.Tasks.Task
client System.Net.Http.HttpClient
리턴 System.Threading.Tasks.Task

RefreshAccount() 보호된 메소드

protected RefreshAccount ( Account account ) : Task
account Account
리턴 Task

RefreshToken() 보호된 메소드

protected RefreshToken ( Account accaccount ) : Task
accaccount Account
리턴 Task

ResetData() 공개 메소드

public ResetData ( ) : void
리턴 void

프로퍼티 상세

authenticator 보호되어 있는 프로퍼티

protected WebAuthenticator,SimpleAuth authenticator
리턴 WebAuthenticator