Classes
The following classes are available globally.
-
A handler class for managing browser-based Identity Provider (IdP) authorization.
See moreDeclaration
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
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.
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
See moreIdPValueobjects, each representing a social or enterprise identity provider. The developer should render a UI to allow the user to make a selection, set thevalueproperty with the chosen provider’s name, and then submit the callback.Declaration
Swift
public final class SelectIdpCallback : AbstractCallback, @unchecked Sendable
View on GitHub
Classes Reference