프로퍼티 | 타입 | 설명 | |
---|---|---|---|
_config | IBoxConfig | ||
_converter | IBoxConverter | ||
_service | IBoxService |
메소드 | 설명 | |
---|---|---|
AuthRepository ( IBoxConfig boxConfig, IBoxService boxService, IBoxConverter converter ) : Box.V2.Config |
Instantiates a new AuthRepository.
|
|
AuthRepository ( IBoxConfig boxConfig, IBoxService boxService, IBoxConverter converter, |
Instantiates a new AuthRepository
|
|
AuthenticateAsync ( string authCode ) : Task |
Authenticates the session by exchanging the provided auth code for a Access/Refresh token pair
|
|
LogoutAsync ( ) : Task |
Logs the current session out by invalidating the current Access/Refresh tokens
|
|
RefreshAccessTokenAsync ( string accessToken ) : Task |
Refreshes the session by exchanging the access token for a new Access/Refresh token pair. In general, this method should not need to be called explicitly, as an automatic refresh is invoked when the SDK detects that the tokens have expired.
|
메소드 | 설명 | |
---|---|---|
ExchangeAuthCode ( string authCode ) : Task |
Performs the authentication request using the provided auth code
|
|
ExchangeRefreshToken ( string refreshToken ) : Task |
Performs the refresh request using the provided refresh token
|
|
InvalidateTokens ( string accessToken ) : Task |
Performs the revoke request using the provided access token. This will invalidate both the access and refresh tokens
|
|
OnSessionAuthenticated ( |
Allows sub classes to invoke the SessionAuthenticated event.
|
|
OnSessionInvalidated ( ) : void |
Allows sub classes to invoke the SessionInvalidated event
|
public AuthRepository ( IBoxConfig boxConfig, IBoxService boxService, IBoxConverter converter ) : Box.V2.Config | ||
boxConfig | IBoxConfig | The Box configuration that should be used. |
boxService | IBoxService | The Box service that will be used to make the requests. |
converter | IBoxConverter | How requests/responses will be serialized/deserialized respectively. |
리턴 | Box.V2.Config |
public AuthRepository ( IBoxConfig boxConfig, IBoxService boxService, IBoxConverter converter, |
||
boxConfig | IBoxConfig | The Box configuration that should be used |
boxService | IBoxService | The Box service that will be used to make the requests |
converter | IBoxConverter | How requests/responses will be serialized/deserialized respectively |
session | The current authenticated session | |
리턴 | Box.V2.Config |
public AuthenticateAsync ( string authCode ) : Task |
||
authCode | string | Authorization Code. The authorization code is only valid for 30 seconds. |
리턴 | Task |
protected ExchangeAuthCode ( string authCode ) : Task |
||
authCode | string | Authorization Code. The authorization code is only valid for 30 seconds. |
리턴 | Task |
protected ExchangeRefreshToken ( string refreshToken ) : Task |
||
refreshToken | string | Refresh token used to exchange for a new access token. Each refresh_token is valid for one use in 60 days. Every time you get a new access_token by using a refresh_token, we reset your timer for the 60 day period and hand you a new refresh_token |
리턴 | Task |
protected InvalidateTokens ( string accessToken ) : Task | ||
accessToken | string | The access token to invalidate |
리턴 | Task |
protected OnSessionAuthenticated ( |
||
session | Authenticated session. | |
리턴 | void |
public RefreshAccessTokenAsync ( string accessToken ) : Task |
||
accessToken | string | The access token to refresh. |
리턴 | Task |