{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/numspot/json-schema/numspot-oidc-configuration-schema.json",
  "title": "OpenID Connect Discovery Metadata",
  "description": "Includes links to several endpoints and exposes information on supported signature algorithms among others.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/numspot-openapi.yml#/components/schemas/OidcConfiguration",
  "type": "object",
  "properties": {
    "authorization_endpoint": {
      "type": "string",
      "description": "OAuth 2.0 Authorization Endpoint URL"
    },
    "backchannel_logout_session_supported": {
      "type": "boolean",
      "description": "OpenID Connect Back-Channel Logout Session Required\nBoolean value specifying whether the OP can pass a sid (session ID) Claim in the Logout Token to identify the RP session with the OP. If supported, the sid Claim is also included in ID Tokens issued by the OP."
    },
    "backchannel_logout_supported": {
      "type": "boolean",
      "description": "OpenID Connect Back-Channel Logout Supported\nBoolean value specifying whether the OP supports back-channel logout, with true indicating support."
    },
    "claims_parameter_supported": {
      "type": "boolean",
      "description": "OpenID Connect Claims Parameter Parameter Supported\nBoolean value specifying whether the OP supports use of the claims parameter, with true indicating support."
    },
    "claims_supported": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "OpenID Connect Supported Claims\nJSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list."
    },
    "code_challenge_methods_supported": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "OAuth 2.0 PKCE Supported Code Challenge Methods\nJSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by this authorization server."
    },
    "credentials_endpoint_draft_00": {
      "type": "string",
      "description": "OpenID Connect Verifiable Credentials Endpoint\n\nContains the URL of the Verifiable Credentials Endpoint."
    },
    "credentials_supported_draft_00": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CredentialSupportedDraft00"
      },
      "description": "OpenID Connect Verifiable Credentials Supported\nJSON array containing a list of the Verifiable Credentials supported by this authorization server."
    },
    "end_session_endpoint": {
      "type": "string",
      "description": "OpenID Connect End-Session Endpoint\nAn URL provided by the OpenID Provider (OP) that a Relying Party (RP) can redirect to, to initiate a logout process for the End-User at the OP. This is part of the OpenID Connect session management functionality,  allowing for single sign-out across applications."
    },
    "frontchannel_logout_session_supported": {
      "type": "boolean",
      "description": "OpenID Connect Front-Channel Logout Session Required\nThe boolean indicates if the OpenID Provider (OP) can use issuer (iss) and session ID (sid) parameters to identify the Relying Party (RP) session during logout via the  frontchannel_logout_uri. If this is supported, the sid claim is also included in ID Tokens issued by the OP."
    },
    "frontchannel_logout_supported": {
      "type": "boolean",
      "description": "OpenID Connect Front-Channel Logout Supported\nBoolean value specifying whether the OP supports HTTP-based logout, with true indicating support."
    },
    "grant_types_supported": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "OAuth 2.0 Supported Grant Types\nJSON array containing a list of the OAuth 2.0 Grant Type values that this OP supports."
    },
    "id_token_signed_response_alg": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "OpenID Connect Default ID Token Signing Algorithms\n\nAlgorithm used to sign OpenID Connect ID Tokens."
    },
    "id_token_signing_alg_values_supported": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "OpenID Connect Supported ID Token Signing Algorithms\n\nJSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT."
    },
    "issuer": {
      "type": "string",
      "description": "OpenID Connect Issuer URL\nAn URL using the https scheme with no query or fragment component that the OP asserts as its IssuerURL Identifier. If IssuerURL discovery is supported, this value MUST be identical to the issuer value returned by WebFinger. This also MUST be identical to the iss Claim value in ID Tokens issued from this IssuerURL."
    },
    "jwks_uri": {
      "type": "string",
      "description": "OpenID Connect Well-Known JSON Web Keys URL\nThe jwks_uri is the URL for the OpenID Provider's (OP) JSON Web Key Set (JWK) document, which contains the keys used by the Relying Party (RP) to validate the OP's signatures and, optionally, encrypt requests. Each key must specify its use (signing or encryption) for security purposes. The JWK set may include X.509  representations of keys via the x5c parameter, but the bare key values must still be present and match those in the certificate."
    },
    "registration_endpoint": {
      "type": "string",
      "description": "OpenID Connect Dynamic Client Registration Endpoint URL"
    },
    "request_object_signing_alg_values_supported": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "OpenID Connect Supported Request Object Signing Algorithms\nJSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter)."
    },
    "request_parameter_supported": {
      "type": "boolean",
      "description": "OpenID Connect Request Parameter Supported\nBoolean value specifying whether the OP supports use of the request parameter, with true indicating support."
    },
    "request_uri_parameter_supported": {
      "type": "boolean",
      "description": "OpenID Connect Request URI Parameter Supported\nBoolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support."
    },
    "require_request_uri_registration": {
      "type": "boolean",
      "description": "OpenID Connect Requires Request URI Registration\nBoolean value specifying whether the OP requires any request_uri values used to be pre-registered using the request_uris registration parameter."
    },
    "response_modes_supported": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "OAuth 2.0 Supported Response Modes\nJSON array containing a list of the OAuth 2.0 response_mode values that this OP supports."
    },
    "response_types_supported": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "OAuth 2.0 Supported Response Types\nJSON array containing a list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values."
    },
    "revocation_endpoint": {
      "type": "string",
      "description": "OAuth 2.0 Token Revocation URL\n\nURL of the authorization server's OAuth 2.0 revocation endpoint."
    },
    "scopes_supported": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "OAuth 2.0 Supported Scope Values\nJSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used"
    },
    "subject_types_supported": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "OpenID Connect Supported Subject Types\nJSON array containing a list of the Subject Identifier types that this OP supports. Valid types include pairwise and public."
    },
    "token_endpoint": {
      "type": "string",
      "description": "OAuth 2.0 Token Endpoint URL"
    },
    "token_endpoint_auth_methods_supported": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "OAuth 2.0 Supported Client Authentication Methods\n\nJSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0"
    },
    "userinfo_endpoint": {
      "type": "string",
      "description": "OpenID Connect Userinfo URL\n\nURL of the OP's UserInfo Endpoint."
    },
    "userinfo_signed_response_alg": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "OpenID Connect User Userinfo Signing Algorithm\n\nAlgorithm used to sign OpenID Connect Userinfo Responses."
    },
    "userinfo_signing_alg_values_supported": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "OpenID Connect Supported Userinfo Signing Algorithm\nJSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]."
    }
  },
  "required": [
    "issuer",
    "authorization_endpoint",
    "token_endpoint",
    "jwks_uri",
    "subject_types_supported",
    "response_types_supported",
    "id_token_signing_alg_values_supported",
    "id_token_signed_response_alg",
    "userinfo_signed_response_alg"
  ],
  "$defs": {
    "CredentialSupportedDraft00": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "cryptographic_binding_methods_supported": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "OpenID Connect Verifiable Credentials Cryptographic Binding Methods Supported\n\nContains a list of cryptographic binding methods supported for signing the proof."
        },
        "cryptographic_suites_supported": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "OpenID Connect Verifiable Credentials Cryptographic Suites Supported\n\nContains a list of cryptographic suites methods supported for signing the proof."
        },
        "format": {
          "type": "string",
          "description": "OpenID Connect Verifiable Credentials Format\n\nContains the format that is supported by this authorization server."
        },
        "types": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "OpenID Connect Verifiable Credentials Types\n\nContains the types of verifiable credentials supported."
        }
      },
      "title": "Verifiable Credentials Metadata (Draft 00)",
      "description": "Includes information about the supported verifiable credentials."
    }
  }
}