Generic OAuth

APIs.ioEngineeringPlatform
View JSON Schema on GitHub

JSON Schema

apis-io-engineering-platform-access-oidc-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/access_oidc",
  "title": "Generic OAuth",
  "allOf": [
    {
      "$ref": "#/components/schemas/access_identity-provider"
    },
    {
      "properties": {
        "config": {
          "allOf": [
            {
              "$ref": "#/components/schemas/access_generic-oauth-config"
            },
            {
              "$ref": "#/components/schemas/access_custom-claims-support"
            },
            {
              "properties": {
                "auth_url": {
                  "description": "The authorization_endpoint URL of your IdP",
                  "example": "https://accounts.google.com/o/oauth2/auth",
                  "type": "string"
                },
                "certs_url": {
                  "description": "The jwks_uri endpoint of your IdP to allow the IdP keys to sign the tokens",
                  "example": "https://www.googleapis.com/oauth2/v3/certs",
                  "type": "string"
                },
                "scopes": {
                  "description": "OAuth scopes",
                  "example": [
                    "openid",
                    "email",
                    "profile"
                  ],
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "token_url": {
                  "description": "The token_endpoint URL of your IdP",
                  "example": "https://accounts.google.com/o/oauth2/token",
                  "type": "string"
                }
              },
              "type": "object"
            }
          ]
        }
      },
      "type": "object"
    }
  ],
  "type": "object"
}