OpenIdConfiguration

public struct OpenIdConfiguration : Codable, Sendable

Struct representing the OpenID Connect configuration.

  • The URL of the authorization endpoint.

    Declaration

    Swift

    public var authorizationEndpoint: String
  • The URL of the token endpoint.

    Declaration

    Swift

    public var tokenEndpoint: String
  • The URL of the userinfo endpoint.

    Declaration

    Swift

    public var userinfoEndpoint: String
  • The URL of the end session endpoint.

    Declaration

    Swift

    public var endSessionEndpoint: String
  • The URL of the revocation endpoint.

    Declaration

    Swift

    public var revocationEndpoint: String
  • The URL of the end session endpoint.

    Declaration

    Swift

    public var pingEndsessionEndpoint: String?
  • The URL of the pushed authorization request endpoint (PAR, RFC 9126).

    Declaration

    Swift

    public var pushedAuthorizationRequestEndpoint: String?
  • The URL of the device authorization endpoint (RFC 8628).

    Declaration

    Swift

    public var deviceAuthorizationEndpoint: String?
  • Initializes a new OpenIdConfiguration instance.

    Declaration

    Swift

    public init(
        authorizationEndpoint: String,
        tokenEndpoint: String,
        userinfoEndpoint: String,
        endSessionEndpoint: String,
        revocationEndpoint: String,
        pingEndsessionEndpoint: String? = nil,
        pushedAuthorizationRequestEndpoint: String? = nil,
        deviceAuthorizationEndpoint: String? = nil
    )

    Parameters

    authorizationEndpoint

    The URL of the authorization endpoint.

    tokenEndpoint

    The URL of the token endpoint.

    userinfoEndpoint

    The URL of the userinfo endpoint.

    endSessionEndpoint

    The URL of the end session endpoint.

    revocationEndpoint

    The URL of the revocation endpoint.

    pingEndsessionEndpoint

    The URL of the Ping end IDP session endpoint.

    pushedAuthorizationRequestEndpoint

    The URL of the PAR endpoint.

    deviceAuthorizationEndpoint

    The URL of the device authorization endpoint (RFC 8628).