IdpRequestHandler

public protocol IdpRequestHandler : Sendable

Interface representing an Identity Provider (IdP) handler.

  • authorize(url:) Asynchronous

    Authorizes the user with the IdP.

    Declaration

    Swift

    func authorize(url: URL?) async throws -> Request

    Parameters

    url

    The URL to use for authorization.

    Return Value

    A Request object containing the result of the authorization

  • fetch(httpClient:url:) Default implementation, asynchronous

    Fetch the IdP client information from the server

    Default Implementation

    Fetch the IdP client information from the server

    Declaration

    Swift

    func fetch(httpClient: HttpClient, url: URL?) async throws -> IdpClient

    Return Value

    An IdpClient object containing the client information.