C# Класс Box.V2.JWTAuth.JWTAuthRepository

JWT auth respository used in AdminClient aor UserClient
Наследование: IAuthRepository
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
OnSessionAuthenticated ( OAuthSession session ) : void

Описание методов

AuthenticateAsync() публичный Метод

Not used for this type of authentication
public AuthenticateAsync ( string authCode ) : Task
authCode string
Результат Task

JWTAuthRepository() публичный Метод

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
Результат Box.V2.Auth

JWTAuthRepository() публичный Метод

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
Результат System

LogoutAsync() публичный Метод

Not used for this type of authentication
public LogoutAsync ( ) : Task
Результат Task

RefreshAccessTokenAsync() публичный Метод

Retrieves a new access token using BoxJWTAuth
public RefreshAccessTokenAsync ( string accessToken ) : Task
accessToken string This input is not used. Could be set to null
Результат Task