{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/beyond-identity/json-schema/beyond-identity-authenticator-config-schema.json",
  "title": "Authenticator Configuration",
  "description": "Representation of an authenticator configuration. This prescribes how an identity may authenticate themselves with Beyond Identity.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/beyond-identity-authenticator-configurations-api-openapi.yml#/components/schemas/AuthenticatorConfig",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "A unique identifier for an authenticator configuration. This is automatically generated on creation. This field is immutable and read-only. This field is unique within the realm.\n",
      "readOnly": true
    },
    "realm_id": {
      "type": "string",
      "description": "A unique identifier for the authenticator configuration's realm. This is automatically set on creation. This field is immutable and read-only.\n",
      "readOnly": true
    },
    "tenant_id": {
      "type": "string",
      "description": "A unique identifier for the authenticator configuration's tenant. This is automatically set on creation. This field is immutable and read-only.\n",
      "readOnly": true
    },
    "display_name": {
      "type": "string",
      "description": "A human-readable name for the authenticator configuration. This name is used for display purposes.\n"
    },
    "config": {
      "description": "An object specifying the settings for the supported authenticator type.\n",
      "oneOf": [
        {
          "title": "Embedded SDK Authenticator",
          "description": "Configuration options for the embedded SDK authenticator.",
          "type": "object",
          "required": [
            "type",
            "invoke_url",
            "trusted_origins"
          ],
          "properties": {
            "invocation_type": {
              "default": "automatic",
              "description": "The method used to invoke the `invoke_url` in the embedded authenticator\nconfig type. The two methods available are:\n\nThe value `automatic` indicates that this invocation type automatically\nredirects you to your native or web app using the Invoke URL with a\nchallenge that your app will need to sign.\n\nThe value `manual` indicates that this invocation type will cause the\nchallenge to be returned to you as part of a JSON response. It will then\nbe up to you to get it to your native/web app any way you see fit. This is\nuseful for flows where you require a lot more control when redirecting to\nyour native/web app. Since the challenge is packaged as part of a URL,\nfollowing the URL will result in the same behavior as if an Invocation\nType of \"automatic\" were selected.\n",
              "enum": [
                "automatic",
                "manual"
              ],
              "type": "string"
            },
            "invoke_url": {
              "description": "URL to invoke during the authentication flow.",
              "type": "string"
            },
            "trusted_origins": {
              "description": "Trusted origins are URLs that will be allowed to make requests from a browser to the Beyond Identity API. This is used with Cross-Origin Resource Sharing (CORS). These may be in the form of `<scheme> \"://\" <host> [ \":\" <port> ]`, such as `https://auth.your-domain.com` or `http://localhost:3000`.\n",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "type": {
              "enum": [
                "embedded"
              ],
              "type": "string"
            },
            "authentication_methods": {
              "items": {
                "properties": {
                  "type": {
                    "description": "Within our hosted web product, an array of values determines the\nclient-side authentication workflows:\n\nThe value `webauthn_passkey` triggers a workflow that generates a hardware\nkey within your device's trusted execution environment (TEE). If webauthn\npasskeys are not supported in the browser, specifying one of the other two\nauthentication methods will result in a fallback to that mechanism.\n\nThe value `software_passkey` activates a workflow where a passkey is\nsecurely created within the browser's context.\n\nThe value `email_one_time_password` enables a workflow that verifies\nidentity via an email of a one-time password.\n",
                    "enum": [
                      "email_one_time_password",
                      "software_passkey",
                      "webauthn_passkey"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "type"
                ],
                "title": "AuthenticationMethod",
                "type": "object"
              },
              "type": "array"
            }
          }
        },
        {
          "title": "Hosted Web Authenticator",
          "description": "Configuration options for the hosted web experience. This authenticator is maintained by Beyond Identity and allows the caller to customize authentication methods.\n",
          "type": "object",
          "required": [
            "type",
            "authentication_methods",
            "trusted_origins"
          ],
          "properties": {
            "authentication_methods": {
              "items": {
                "$ref": "#/$defs/items"
              },
              "type": "array"
            },
            "trusted_origins": {
              "description": "Trusted origins are URLs that will be allowed to make requests from a browser to the Beyond Identity API. This is used with Cross-Origin Resource Sharing (CORS). These may be in the form of `<scheme> \"://\" <host> [ \":\" <port> ]`, such as `https://auth.your-domain.com` or `http://localhost:3000`.\n",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "type": {
              "enum": [
                "hosted_web"
              ],
              "type": "string"
            }
          }
        },
        {
          "title": "Console Authenticator",
          "description": "Configuration options for credential enrollment, enabling an identity to access the Beyond Identity Console. These options support both IDP-authorized flows and non-verified enrollment pathways.\n",
          "type": "object",
          "required": [
            "type",
            "onboarding_configuration"
          ],
          "properties": {
            "type": {
              "enum": [
                "console"
              ],
              "type": "string"
            },
            "onboarding_configuration": {
              "title": "Console Onboarding Configuration",
              "description": "Configuration options for the console onboarding experience.",
              "type": "object",
              "required": [
                "verification_method"
              ],
              "properties": {
                "verification_method": {
                  "oneOf": [
                    {
                      "title": "Console Verification Method IDP",
                      "description": "Configures IDP verification for identities onboarding.",
                      "type": "object",
                      "required": [
                        "type",
                        "idp_id"
                      ],
                      "properties": {
                        "type": {
                          "description": "The type of verification method to be used for credential onboarding. Currently only `idp` or `none` are supported options.\nIf set to `none` there will be no verification step performed for the identity selected for credential onboarding.",
                          "type": "string",
                          "enum": [
                            "idp"
                          ]
                        },
                        "idp_id": {
                          "description": "The id of the IDP to use to verify the identity during the onboarding process.",
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    },
                    {
                      "title": "Console Verification Method None",
                      "description": "An onboarding configuration with no verification configured. Identities will not be verified during the onboarding operation.",
                      "type": "object",
                      "required": [
                        "type"
                      ],
                      "properties": {
                        "type": {
                          "description": "The type of verification method to be used for credential onboarding. Currently only `idp` or `none` are supported options.\nIf set to `none` there will be no verification step performed for the identity selected for credential onboard.",
                          "type": "string",
                          "enum": [
                            "none"
                          ]
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        {
          "title": "Platform Authenticator",
          "description": "Configuration options for the platform authenticator.",
          "type": "object",
          "required": [
            "type"
          ],
          "properties": {
            "type": {
              "type": "string",
              "enum": [
                "platform"
              ]
            },
            "trusted_origins": {
              "description": "Trusted origins are URLs that will be allowed to make requests from a browser to the Beyond Identity API. This is used with Cross-Origin Resource Sharing (CORS). These may be in the form of `<scheme> \"://\" <host> [ \":\" <port> ],` such as `https://auth.your-domain.com` or `http://localhost:3000`.",
              "type": [
                "array",
                "null"
              ],
              "items": {
                "type": "string"
              }
            },
            "roaming_auth_config": {
              "description": "The roaming_auth_config offers advanced configuration options for the roaming auth feature.",
              "title": "RoamingAuthConfig",
              "type": "object",
              "required": [
                "enabled",
                "allow_unknow_user"
              ],
              "properties": {
                "enabled": {
                  "description": "If false, roaming auth is never offered as an available flow during authentication on this Authenticator Config.",
                  "type": "boolean"
                },
                "allow_unknown_user": {
                  "description": "If a login_hint is not provided or the login_hint does not match for exactly one user in the directory, the user will be considered \"unknown\" and the value of allow_unknown_user will be used to determine whether or not to offer roaming auth.",
                  "type": "boolean"
                },
                "allowed_source_ips": {
                  "description": "If allowed_source_ips is not null and not empty, roaming auth will only be offered to users who begin the authentication from a specified IP address or range.",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "allowed_user_group_ids": {
                  "description": "If allowed_user_group_ids is not nil and not empty, roaming auth will only be offered to users if they are part of one of those user groups. Note that the user is determined _before_ authentication using a best effort lookup by login_hint, if provided. If a login_hint is not provided or the login_hint does not match for exactly one user in the directory, the user will be considered \\\"unknown\\\" and the value of allow_unknown_user will be used to determine whether or not to offer roaming auth.",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "allowed_user_ids": {
                  "description": "If allowed_user_ids is not nil and not empty, roaming auth will only be offered to specified users. Note that the user is determined _before_ authentication using a best effort lookup by login_hint, if provided. If a login_hint is not provided or the login_hint does not match for exactly one user in the directory, the user will be considered \\\"unknown\\\" and the value of allow_unknown_user will be used to determine whether or not to offer roaming auth.",
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      ]
    }
  }
}