C# 클래스 inBloomApiLibrary.OAuth

OAuth Functionality
파일 보기 프로젝트 열기: upeo/inbloom-dotnet 1 사용 예제들

공개 메소드들

메소드 설명
CallAuthorization ( string accessToken, string code ) : OAuthResponse

This function is used to check authentication of the user and gives access to api's.

GetAuthorizationUrl ( ) : string

Gets the URL to which users should be redirected for login

SetClientId ( string clientId ) : void

Set the client ID

SetClientSecret ( string clientSecret ) : void

Set the client secret

SetRedirectUrl ( string redirectUrl ) : void

Set the redirect URL

비공개 메소드들

메소드 설명
GetUserId ( string accessToken ) : string

The session check endpoint doesn't give us the User ID so we have to do a second API call here to the home endpoint and grab the ID from one of the links there This seems like a hack though... Must be a better way of getting it.

메소드 상세

CallAuthorization() 공개 메소드

This function is used to check authentication of the user and gives access to api's.
public CallAuthorization ( string accessToken, string code ) : OAuthResponse
accessToken string
code string
리턴 OAuthResponse

GetAuthorizationUrl() 공개 메소드

Gets the URL to which users should be redirected for login
public GetAuthorizationUrl ( ) : string
리턴 string

SetClientId() 공개 메소드

Set the client ID
public SetClientId ( string clientId ) : void
clientId string
리턴 void

SetClientSecret() 공개 메소드

Set the client secret
public SetClientSecret ( string clientSecret ) : void
clientSecret string
리턴 void

SetRedirectUrl() 공개 메소드

Set the redirect URL
public SetRedirectUrl ( string redirectUrl ) : void
redirectUrl string
리턴 void