SessionManager

open class SessionManager

Manage the user session

Constructors

Link copied to clipboard
constructor(tokenManager: TokenManager, singleSignOnManager: SingleSignOnManager)

Properties

Link copied to clipboard
private open var interceptors: List<Interceptor<out Any>>
Link copied to clipboard
Link copied to clipboard
private open var tokenManager: TokenManager

Functions

Link copied to clipboard
open fun close()
Close the session, all tokens will be removed.
open fun close(appAuthConfiguration: AppAuthConfiguration)
Close the user with specific AppAuthConfiguration, the AppAuthConfiguration should match the configuration used for FRUser.Browser.
private open fun close(appAuthConfiguration: Supplier<AppAuthConfiguration>)
Close the session
Link copied to clipboard
Retrieve the Access Token.
open fun getAccessToken(listener: FRListener<AccessToken>)
Retrieve the AccessToken, if the AccessToken is expired, getRefreshToken will be used.
Link copied to clipboard
open fun hasSession(): Boolean
Checks if a session exists
Link copied to clipboard
Refresh the Access Token.
Link copied to clipboard
open fun revokeAccessToken(listener: FRListener<Void>)
Calling TokenManager to revoke OAuth2.