IdentityProvider

Encapsulates interface requirements for an external identity provider to register and authenticate an identity within Sudo platform ecosystem.

Functions

Link copied to clipboard
abstract suspend fun deregister(uid: String, accessToken: String)

De-registers a user.

Link copied to clipboard
abstract suspend fun globalSignOut(accessToken: String)

Signs out the user from all devices.

Link copied to clipboard
abstract suspend fun refreshTokens(refreshToken: String): AuthenticationTokens

Refresh the access and ID tokens using the refresh token.

Link copied to clipboard
abstract suspend fun register(uid: String, parameters: Map<String, String>): String

Registers a new user against the identity provider.

Link copied to clipboard
abstract suspend fun signIn(uid: String, parameters: Map<String, String>): AuthenticationTokens

Sign into the identity provider.

Link copied to clipboard
abstract suspend fun signOut(refreshToken: String)

Signs out the user from this device only.