Classes

The following classes are available globally.

  • A handler class for managing browser-based Identity Provider (IdP) authorization.

    See more

    Declaration

    Swift

    @MainActor
    public class BrowserHandler : IdpRequestHandler
  • A callback that handles federated authentication with an external Identity Provider (IdP) like Google, Facebook, or Apple.

    This callback provides all the necessary configuration from the authentication server to perform OAuth 2.0 / OpenID Connect flows with external identity providers. It supports both native SDK integration and browser-based flows.

    Usage Example

    // The callback is automatically created from server response
    if let idpCallback = callback as? IdpCallback {
        let result = await idpCallback.authorize()
        switch result {
        case .success(let idpResult):
            // Authentication successful, proceed with next step
            await continueNode.next()
        case .failure(let error):
            // Handle authentication error
            print("Authentication failed: \(error)")
        }
    }
    

    Supported Providers

    • Apple Sign In (Sign in with Apple)
    • Google Sign-In
    • Facebook Login
    See more

    Declaration

    Swift

    public final class IdpCallback : AbstractCallback, JourneyAware, RequestInterceptor, @unchecked Sendable
  • A collector class for handling Identity Provider (IdP) authorization.

    • property continueNode: The continue node.
    • property id: The unique identifier for the collector.
    • property idpType: The type of IdP.
    • property label: The label for the IdP.
    • property link: The URL link for IdP authentication.
    • property nativeHandler: The native handler for the IdP request.
    • property resumeRequest: The request to resume the DaVinci flow.
    See more

    Declaration

    Swift

    @objc
    open class IdpCollector : NSObject, Collector, ContinueNodeAware, RequestInterceptor, @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.

    See more

    Declaration

    Swift

    public final class SelectIdpCallback : AbstractCallback, @unchecked Sendable