C# Class Box.V2.JWTAuth.JWTAuthRepository

JWT auth respository used in AdminClient aor UserClient
Inheritance: IAuthRepository
Show file Open project: box/box-windows-sdk-v2 Class Usage Examples

Public Methods

Method Description
AuthenticateAsync ( string authCode ) : Task

Not used for this type of authentication

JWTAuthRepository ( OAuthSession session, BoxJWTAuth boxJWTAuth, string userId = null ) : Box.V2.Auth

Constructor JWT auth. repository

JWTAuthRepository ( OAuthSession session, BoxJWTAuth boxJWTAuth, string userId = null ) : System

Constructor JWT auth. repository

LogoutAsync ( ) : Task

Not used for this type of authentication

RefreshAccessTokenAsync ( string accessToken ) : Task

Retrieves a new access token using BoxJWTAuth

Private Methods

Method Description
OnSessionAuthenticated ( OAuthSession session ) : void

Method Details

AuthenticateAsync() public method

Not used for this type of authentication
public AuthenticateAsync ( string authCode ) : Task
authCode string
return Task

JWTAuthRepository() public method

Constructor JWT auth. repository
public JWTAuthRepository ( OAuthSession session, BoxJWTAuth boxJWTAuth, string userId = null ) : Box.V2.Auth
session Box.V2.Auth.OAuthSession OAuth session
boxJWTAuth BoxJWTAuth JWT authentication
userId string Id of the user
return Box.V2.Auth

JWTAuthRepository() public method

Constructor JWT auth. repository
public JWTAuthRepository ( OAuthSession session, BoxJWTAuth boxJWTAuth, string userId = null ) : System
session OAuthSession OAuth session
boxJWTAuth BoxJWTAuth JWT authentication
userId string Id of the user
return System

LogoutAsync() public method

Not used for this type of authentication
public LogoutAsync ( ) : Task
return Task

RefreshAccessTokenAsync() public method

Retrieves a new access token using BoxJWTAuth
public RefreshAccessTokenAsync ( string accessToken ) : Task
accessToken string This input is not used. Could be set to null
return Task