C# Class Box.V2.JWTAuth.JWTAuthRepository

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

Méthodes publiques

Méthode 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

Méthode Description
OnSessionAuthenticated ( OAuthSession session ) : void

Method Details

AuthenticateAsync() public méthode

Not used for this type of authentication
public AuthenticateAsync ( string authCode ) : Task
authCode string
Résultat Task

JWTAuthRepository() public méthode

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
Résultat Box.V2.Auth

JWTAuthRepository() public méthode

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
Résultat System

LogoutAsync() public méthode

Not used for this type of authentication
public LogoutAsync ( ) : Task
Résultat Task

RefreshAccessTokenAsync() public méthode

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