DefaultAgent

public final class DefaultAgent : Agent

Default implementation of the Agent interface.

  • T

    Declaration

    Swift

    public typealias T = Void
  • Initialize the DefaultAgent.

    Declaration

    Swift

    public init()
  • Provides an empty configuration for the DefaultAgent.

    Declaration

    Swift

    public func config() -> () -> Void

    Return Value

    A function that returns Void

  • End the session with the OpenID Connect provider. This implementation always returns false.

    Declaration

    Swift

    @discardableResult
    public func endSession(oidcConfig: OidcConfig<Void>, idToken: String) async throws -> Bool

    Parameters

    oidcConfig

    The configuration for the OpenID Connect client.

    idToken

    The ID token used to end the session.

    Return Value

    Always returns false.

  • authorize(oidcConfig:) Asynchronous

    Authorize the DefaultAgent with the OpenID Connect provider. This implementation always throws an OidcError.authorizeError error.

    Declaration

    Swift

    public func authorize(oidcConfig: OidcConfig<Void>) async throws -> AuthCode

    Parameters

    oidcConfig

    The configuration for the OpenID Connect client.

    Return Value

    Never returns normally.