Classes

The following classes are available globally.

  • Allow the Agent to run on OidcConfig so that it can access the configuration object.

    See more

    Declaration

    Swift

    public class OidcConfig<T>
  • Default implementation of the Agent interface.

    See more

    Declaration

    Swift

    public final class DefaultAgent : Agent
  • Delegate class to dispatch Agent functions

    See more

    Declaration

    Swift

    public class AgentDelegate<T> : AgentDelegateProtocol
  • A module that integrates OIDC capabilities into the DaVinci workflow.

    See more

    Declaration

    Swift

    public class OidcModule
  • A module that integrates OIDC capabilities into the DaVinci workflow.

    See more

    Declaration

    Swift

    public class WebModule
  • Class representing an OpenID Connect client.

    • Property pkce: PKCE object used for the Authorization call.
    See more

    Declaration

    Swift

    public class OidcClient
  • Configuration class for OIDC client.

    Important

    This class is @unchecked Sendable and contains mutable var fields. Configure all properties before passing the instance to any client or workflow — do not mutate it afterwards, as it may be read concurrently from background threads.
    See more

    Declaration

    Swift

    public class OidcClientConfig : @unchecked Sendable
  • A client that implements the RFC 8628 Device Authorization Grant (requesting-device side).

    Use OidcDeviceClient when the device cannot open a browser directly (e.g., a smart TV or CLI tool). Call deviceAuthorization() to start the flow and receive a stream of DeviceFlowStatus updates. The stream yields .started with the userCode and verificationUri to display, then .polling on each poll, and finally .success, .accessDenied, or .expired when the flow resolves.

    Important

    OidcClientConfig is marked @unchecked Sendable and contains mutable var fields. Do not mutate the config after passing it to this initializer — the polling loop captures the config and reads it from a background thread.
    See more

    Declaration

    Swift

    public class OidcDeviceClient : @unchecked Sendable
  • Class for an OIDC User

    See more

    Declaration

    Swift

    public class OidcUser : User, @unchecked Sendable
  • OidcWebClientConfig is a subclass of WorkflowConfig

    See more

    Declaration

    Swift

    public class OidcWebClientConfig : WorkflowConfig, @unchecked Sendable

    Parameters

    config

    The configuration for the OIDC workflow.

    Return Value

    An instance of OidcWebClient configured for OIDC login.