OAuthProvider
interface OAuthProvider
Content copied to clipboard
This interface provides definitions for all methods required to interact with the Sensibill OAuth service.
Types
AccessTokenCallback
Link copied to clipboard
interface AccessTokenCallback
Content copied to clipboard
ForgetPasswordCallback
Link copied to clipboard
interface ForgetPasswordCallback
Content copied to clipboard
LogoutCallback
Link copied to clipboard
interface LogoutCallback
Content copied to clipboard
Functions
authenticateUser
Link copied to clipboard
open fun authenticateUser(oauthSettings: OAuthSettings, username: String, password: String, callback: OAuthProvider.AccessTokenCallback)
Content copied to clipboard
abstract fun authenticateUser(oauthSettings: OAuthSettings, username: String, password: String, callback: OAuthProvider.AccessTokenCallback, callbackScope: CoroutineScope)
Content copied to clipboard
forgotPassword
Link copied to clipboard
open fun forgotPassword(email: String, callback: OAuthProvider.ForgetPasswordCallback)
Content copied to clipboard
abstract fun forgotPassword(email: String, callback: OAuthProvider.ForgetPasswordCallback, callbackScope: CoroutineScope)
Content copied to clipboard
getClientToken
Link copied to clipboard
open fun getClientToken(oauthSettings: OAuthSettings, callback: OAuthProvider.AccessTokenCallback)
Content copied to clipboard
abstract fun getClientToken(oauthSettings: OAuthSettings, callback: OAuthProvider.AccessTokenCallback, callbackScope: CoroutineScope)
Content copied to clipboard
logout
Link copied to clipboard
open fun logout(accessToken: String, logoutCallback: OAuthProvider.LogoutCallback)
Content copied to clipboard
abstract fun logout(accessToken: String, logoutCallback: OAuthProvider.LogoutCallback, callbackScope: CoroutineScope)
Content copied to clipboard
refreshToken
Link copied to clipboard
open fun refreshToken(refreshToken: String, oauthSettings: OAuthSettings, accessTokenCallback: OAuthProvider.AccessTokenCallback)
Content copied to clipboard
abstract fun refreshToken(refreshToken: String, oauthSettings: OAuthSettings, accessTokenCallback: OAuthProvider.AccessTokenCallback, callbackScope: CoroutineScope)
Content copied to clipboard
Inheritors
OAuthProviderImpl
Link copied to clipboard