SelectIdpCallback

Callback that handles the selection of an external Identity Provider (IdP).

This callback is triggered when the user needs to select an authentication method from available external identity providers (such as Google, Facebook, Apple, etc.) during the authentication journey.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class IdPValue(jsonObject: JsonObject)

Represents an identity provider option presented to the user. Contains the provider identifier and UI configuration details.

Properties

Link copied to clipboard
var providers: <Error class: unknown class>

List of available identity providers that the user can select from. This list is populated from the callback's JSON data.

Link copied to clipboard

The selected identity provider identifier. This value should be set to the provider ID that the user has chosen.

Functions

Link copied to clipboard
protected open override fun init(name: String, value: JsonElement)

Initializes the callback with data from the authentication server.

Link copied to clipboard
open override fun payload(): JsonObject

Generates a JSON object payload to be sent back to the authentication server. This payload includes the user's selected identity provider.