DelegatedAuthSession
public class DelegatedAuthSession : SessionProtocol
An authorization session using JWT token
-
Revokes token
Declaration
Swift
public func revokeTokens(completion: @escaping Callback<Void>)Parameters
completionReturns empty result in case of success and an error otherwise.
-
Retrieves valid access token
Declaration
Swift
public func getAccessToken(completion: @escaping AccessTokenClosure)Parameters
completionAccessTokenClosure returning either valid access token string or an error.
-
Downscope the token.
Declaration
Swift
public func downscopeToken( scope: Set<TokenScope>, resource: String? = nil, completion: @escaping TokenInfoClosure )Parameters
scopeScope or scopes that you want to apply to the resulting token.
resourceFull url path to the file that the token should be generated for, eg: https://api.box.com/2.0/files/{file_id}
completionReturns the success or an error.
DelegatedAuthSession Class Reference