SelectIdpCallback
public final class SelectIdpCallback : AbstractCallback, @unchecked Sendable
A callback that prompts the user to select one from a list of Identity Providers (IdPs).
This callback provides a list of IdPValue objects, each representing a social
or enterprise identity provider. The developer should render a UI to allow the user
to make a selection, set the value property with the chosen provider’s name,
and then submit the callback.
-
A list of available identity provider options. This property is read-only.
Declaration
Swift
public private(set) var providers: [IdPValue] { get } -
The value of the provider selected by the user. You must set this property with the
providerstring from the selectedIdPValuebefore submitting the form.Declaration
Swift
public var value: String
-
Sets the callback’s properties from the JSON received from the authentication server. It specifically parses the list of providers from the “output” part of the JSON.
Declaration
Swift
public override func initValue(name: String, value: Any)
-
Constructs the final payload with the token received from the IdP.
Declaration
Swift
public override func payload() -> [String : Any]Return Value
A dictionary containing the selected provider’s name.
View on GitHub