@faable/auth-sdk 2.9.25 → 2.9.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/FaableAuthApi.d.ts +76 -0
- package/dist/api/generated-client.d.ts +200 -3
- package/dist/api/types.d.ts +201 -70
- package/dist/version.js +2 -2
- package/package.json +1 -1
- package/spec/openapi.json +602 -88
package/spec/openapi.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "@faablecloud/auth",
|
|
5
5
|
"description": "Auth Platform made by Faable. Manage Users and Roles",
|
|
6
|
-
"version": "2.
|
|
6
|
+
"version": "2.106.0",
|
|
7
7
|
"license": {
|
|
8
8
|
"name": "private",
|
|
9
9
|
"url": "https://faable.com/docs/platform/privacy-policy"
|
|
@@ -1753,6 +1753,79 @@
|
|
|
1753
1753
|
"token_endpoint_auth_method": {
|
|
1754
1754
|
"type": "string"
|
|
1755
1755
|
},
|
|
1756
|
+
"jwks": {
|
|
1757
|
+
"type": "object",
|
|
1758
|
+
"required": [
|
|
1759
|
+
"keys"
|
|
1760
|
+
],
|
|
1761
|
+
"properties": {
|
|
1762
|
+
"keys": {
|
|
1763
|
+
"type": "array",
|
|
1764
|
+
"items": {
|
|
1765
|
+
"type": "object",
|
|
1766
|
+
"required": [
|
|
1767
|
+
"kty"
|
|
1768
|
+
],
|
|
1769
|
+
"properties": {
|
|
1770
|
+
"kty": {
|
|
1771
|
+
"type": "string",
|
|
1772
|
+
"description": "`RSA`, `EC` or `OKP`."
|
|
1773
|
+
},
|
|
1774
|
+
"kid": {
|
|
1775
|
+
"type": "string",
|
|
1776
|
+
"description": "Key id. Required when the set has more than one key; the assertion names it in its header."
|
|
1777
|
+
},
|
|
1778
|
+
"use": {
|
|
1779
|
+
"type": "string"
|
|
1780
|
+
},
|
|
1781
|
+
"alg": {
|
|
1782
|
+
"type": "string"
|
|
1783
|
+
},
|
|
1784
|
+
"n": {
|
|
1785
|
+
"type": "string"
|
|
1786
|
+
},
|
|
1787
|
+
"e": {
|
|
1788
|
+
"type": "string"
|
|
1789
|
+
},
|
|
1790
|
+
"crv": {
|
|
1791
|
+
"type": "string"
|
|
1792
|
+
},
|
|
1793
|
+
"x": {
|
|
1794
|
+
"type": "string"
|
|
1795
|
+
},
|
|
1796
|
+
"y": {
|
|
1797
|
+
"type": "string"
|
|
1798
|
+
}
|
|
1799
|
+
},
|
|
1800
|
+
"additionalProperties": true
|
|
1801
|
+
},
|
|
1802
|
+
"maxItems": 5
|
|
1803
|
+
}
|
|
1804
|
+
},
|
|
1805
|
+
"description": "Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime.",
|
|
1806
|
+
"nullable": true
|
|
1807
|
+
},
|
|
1808
|
+
"jwks_usage": {
|
|
1809
|
+
"type": "array",
|
|
1810
|
+
"items": {
|
|
1811
|
+
"type": "object",
|
|
1812
|
+
"required": [
|
|
1813
|
+
"kid",
|
|
1814
|
+
"last_used_at"
|
|
1815
|
+
],
|
|
1816
|
+
"properties": {
|
|
1817
|
+
"kid": {
|
|
1818
|
+
"type": "string"
|
|
1819
|
+
},
|
|
1820
|
+
"last_used_at": {
|
|
1821
|
+
"type": "string",
|
|
1822
|
+
"format": "date-time"
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
},
|
|
1826
|
+
"description": "When each `jwks` key last signed a client assertion, by `kid` (empty for a key without one). Precise to 5 minutes. Read-only.",
|
|
1827
|
+
"nullable": true
|
|
1828
|
+
},
|
|
1756
1829
|
"consent_required": {
|
|
1757
1830
|
"type": "boolean",
|
|
1758
1831
|
"description": "When true, /authorize never issues a code in silence for this client: the End-User approves it on the consent screen first. Set on clients the tenant did not create (Client ID Metadata Documents, dynamic registration)."
|
|
@@ -2611,7 +2684,60 @@
|
|
|
2611
2684
|
}
|
|
2612
2685
|
},
|
|
2613
2686
|
"token_endpoint_auth_method": {
|
|
2614
|
-
"type": "string"
|
|
2687
|
+
"type": "string",
|
|
2688
|
+
"description": "How the client authenticates at the token endpoint: `client_secret_basic`, `client_secret_post`, `private_key_jwt` (needs `jwks`; the client_secret then stops working) or `none` (public client)."
|
|
2689
|
+
},
|
|
2690
|
+
"jwks": {
|
|
2691
|
+
"type": "object",
|
|
2692
|
+
"required": [
|
|
2693
|
+
"keys"
|
|
2694
|
+
],
|
|
2695
|
+
"properties": {
|
|
2696
|
+
"keys": {
|
|
2697
|
+
"type": "array",
|
|
2698
|
+
"items": {
|
|
2699
|
+
"type": "object",
|
|
2700
|
+
"required": [
|
|
2701
|
+
"kty"
|
|
2702
|
+
],
|
|
2703
|
+
"properties": {
|
|
2704
|
+
"kty": {
|
|
2705
|
+
"type": "string",
|
|
2706
|
+
"description": "`RSA`, `EC` or `OKP`."
|
|
2707
|
+
},
|
|
2708
|
+
"kid": {
|
|
2709
|
+
"type": "string",
|
|
2710
|
+
"description": "Key id. Required when the set has more than one key; the assertion names it in its header."
|
|
2711
|
+
},
|
|
2712
|
+
"use": {
|
|
2713
|
+
"type": "string"
|
|
2714
|
+
},
|
|
2715
|
+
"alg": {
|
|
2716
|
+
"type": "string"
|
|
2717
|
+
},
|
|
2718
|
+
"n": {
|
|
2719
|
+
"type": "string"
|
|
2720
|
+
},
|
|
2721
|
+
"e": {
|
|
2722
|
+
"type": "string"
|
|
2723
|
+
},
|
|
2724
|
+
"crv": {
|
|
2725
|
+
"type": "string"
|
|
2726
|
+
},
|
|
2727
|
+
"x": {
|
|
2728
|
+
"type": "string"
|
|
2729
|
+
},
|
|
2730
|
+
"y": {
|
|
2731
|
+
"type": "string"
|
|
2732
|
+
}
|
|
2733
|
+
},
|
|
2734
|
+
"additionalProperties": true
|
|
2735
|
+
},
|
|
2736
|
+
"maxItems": 5
|
|
2737
|
+
}
|
|
2738
|
+
},
|
|
2739
|
+
"description": "Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime.",
|
|
2740
|
+
"nullable": true
|
|
2615
2741
|
},
|
|
2616
2742
|
"application_type": {
|
|
2617
2743
|
"type": "string"
|
|
@@ -9520,6 +9646,14 @@
|
|
|
9520
9646
|
"client_secret": {
|
|
9521
9647
|
"type": "string"
|
|
9522
9648
|
},
|
|
9649
|
+
"client_assertion": {
|
|
9650
|
+
"type": "string",
|
|
9651
|
+
"description": "For a client whose `token_endpoint_auth_method` is `private_key_jwt`: a JWT signed with one of the private keys whose public half is in the client's `jwks`. `iss` and `sub` = client_id, `aud` = this token endpoint, `exp` at most 10 minutes away, a unique `jti`. client_credentials only."
|
|
9652
|
+
},
|
|
9653
|
+
"client_assertion_type": {
|
|
9654
|
+
"type": "string",
|
|
9655
|
+
"description": "With `client_assertion`: `urn:ietf:params:oauth:client-assertion-type:jwt-bearer`."
|
|
9656
|
+
},
|
|
9523
9657
|
"scope": {
|
|
9524
9658
|
"type": "string"
|
|
9525
9659
|
},
|
|
@@ -9756,7 +9890,7 @@
|
|
|
9756
9890
|
},
|
|
9757
9891
|
"ErrorCode": {
|
|
9758
9892
|
"type": "string",
|
|
9759
|
-
"description": "Machine-readable error code. One HTTP status per code.\n\n- `bad_request` (400): The request is malformed. `message` says what is wrong.\n- `validation_error` (400): The body, query or path failed schema validation. `details.issues` lists each failing field.\n- `unauthorized` (401): The request carries no valid credentials.\n- `payment_required` (402): The feature is not included in the current plan.\n- `forbidden` (403): The credentials are valid but do not allow this operation.\n- `not_found` (404): The resource does not exist in this account.\n- `method_not_allowed` (405): The HTTP method is not supported on this path.\n- `conflict` (409): The request conflicts with the current state of the resource.\n- `last_sign_in_method` (409): Unlinking this account would leave the user with no way to sign in: set a password, verify the email or link another account first.\n- `payload_too_large` (413): The request body exceeds the size limit.\n- `unsupported_media_type` (415): The `Content-Type` is not accepted by this endpoint.\n- `unprocessable_entity` (422): The request is well-formed but cannot be processed.\n- `too_many_requests` (429): Rate limit exceeded. Honour the `Retry-After` header.\n- `internal_error` (500): Unexpected server error. Retry later; the request id is logged.\n- `already_exists` (400): A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.\n- `invalid_id` (400): The id in the path is not a valid id for this resource.\n- `account_not_found` (404): No Auth Account matches the request (domain, header or token).\n- `invalid_query` (400): The `?query=` FaableQL expression could not be parsed.\n- `search_not_supported` (400): This resource does not support `?search=`.\n- `invalid_expand` (400): An `?expand=` path is not allowed on this resource.\n- `access_denied` (403): The caller may not access this row (ownership or machine-to-machine restriction).\n- `insufficient_scope` (403): The token lacks a scope this operation requires. `message` names it.\n- `team_required` (400): An Auth Account must belong to a project (team).\n- `account_limit_reached` (409): The project already has the maximum number of Auth Accounts.\n- `invalid_project_id` (400): The project id is not of the form `project_<hex>` or `team_<hex>`.\n- `account_transfer_refused` (409): The Auth Account cannot be moved to that project. `details.blockers` lists why.\n- `email_sender_domain_not_allowed` (400): The sender address is not in a domain this platform signs email for (AUTH_EMAIL_SENDER_DOMAINS).\n- `plan_required` (402): The setting requires a higher plan. `message` says which.\n- `invalid_canonical_host` (400): `canonical_host` must be this account's own platform host or one of its verified custom domains.\n- `canonical_host_breaks_passkeys` (400): `canonical_host` is outside the account's current WebAuthn RP ID — every passkey already enrolled would stop working. Set `webauthn_rp_id` in the same request to a suffix that covers both.\n- `not_logged_in` (401): There is no signed-in session for this request.\n- `session_already_revoked` (409): The session was already revoked.\n- `invalid_token` (401): The bearer token is missing, malformed, expired or has no subject.\n- `not_owner` (403): The caller may only perform this operation on their own user.\n- `user_suspended` (403): The user is suspended and cannot sign in or be modified.\n- `invalid_credentials` (400): The email/username or password is incorrect.\n- `login_denied` (401): A post-login Action denied the sign-in. `message` carries the reason it gave. On token grants it is a 403 with `error: invalid_grant`.\n- `signup_denied` (403): A pre-signup Action or an active block denied the sign-up. `message` carries the reason.\n- `client_credentials_denied` (401): An Action denied the client_credentials grant. `message` carries the reason.\n- `m2m_quota_exceeded` (402): The project used the machine-to-machine tokens its plan includes this month. Free is capped; Hobby and Pro are billed per token instead.\n- `signup_disabled` (403): Self-service sign-up is disabled on this connection.\n- `email_taken` (409): Another user in this account already uses that email.\n- `username_taken` (409): Another user of this database connection already uses that username.\n- `invalid_username` (400): The username is empty, or contains an `@` or whitespace. `message` says which.\n- `invalid_email` (400): The email address is not valid.\n- `invalid_name` (400): The name contains a link. `message` says which field.\n- `same_email` (400): The new email is the same as the current one.\n- `user_has_no_email` (400): The operation needs an email but the user has none.\n- `password_too_weak` (400): The password does not meet the connection policy. `message` lists each unmet rule.\n- `invalid_password_hash` (400): The imported password hash cannot be read, or its cost is above what a login can afford. `message` names the field.\n- `weak_password_hash` (400): The imported password hash uses a fast digest (MD5, SHA-1, SHA-2) or a cost below the minimum. `message` says which.\n- `invalid_code` (400): The verification code is wrong, expired or already used.\n- `invalid_phone` (400): The phone number is not E.164 and could not be resolved with the account default country. Include the country code.\n- `phone_changed` (400): The phone on the user changed after the code was sent. Start again.\n- `phone_already_verified` (409): The user already has a verified phone; the number cannot be swapped from the screen.\n- `sms_unavailable` (409): This account cannot send SMS right now. The suffix says why: `sms_unavailable:plan`, `:quota`, `:provider`.\n- `sms_failed` (409): The SMS provider rejected the message.\n- `invalid_state` (400): The `state` is missing, expired, or does not describe a resumable step.\n- `state_mismatch` (401): The `state` belongs to another account, session, client or ceremony.\n- `invalid_ticket` (400): The ticket does not exist or is not the kind this endpoint accepts.\n- `ticket_used` (400): The ticket was already consumed.\n- `ticket_expired` (400): The ticket is past its expiry.\n- `ticket_not_found` (404): No ticket with that id belongs to this user.\n- `credential_not_found` (404): The user has no password credential on this connection.\n- `invalid_link` (400): The magic link is malformed.\n- `expired_link` (400): The magic link token was not found or has expired.\n- `invalid_otp` (401): The one-time password is wrong or expired.\n- `invalid_client` (400): The `client_id` in the request does not name a client of this account.\n- `client_not_found` (404): No client with that `client_id`.\n- `client_mismatch` (401): The client belongs to a different account.\n- `invalid_client_metadata` (400): A client field was rejected: by dynamic client registration (RFC 7591), or on a client create/update (`initiate_login_uri`). `message` names it.\n- `invalid_connection` (400): The connection does not exist, is disabled, or is not of the type this flow needs.\n- `no_database_connection` (400): The tenant has no database connection, so there is nowhere to store a password. Create one and retry.\n- `connection_required` (400): No connection was given and the client has no `default_connection`.\n- `connection_misconfigured` (400): The connection is missing settings needed to talk to its provider.\n- `passwordless_unavailable` (400): No passwordless connection is configured or enabled for this client.\n- `ambiguous_connection` (400): Several connections match; pass `connection_id`.\n- `invalid_redirect_uri` (400): The redirect URI is not registered for the client.\n- `invalid_saml_request` (400): The SAMLRequest is missing, too large, not well-formed or not a SAML 2.0 AuthnRequest.\n- `saml_sp_mismatch` (400): The AuthnRequest does not match the client's SAML configuration: its Issuer is not the configured entity_id, or it asks for another Assertion Consumer Service URL or binding.\n- `saml_not_enabled` (404): This client does not have SAML enabled.\n- `invalid_saml_sp` (400): The `saml_sp` configuration is invalid: `acs_url` must be an absolute https URL without a fragment.\n- `origin_not_allowed` (403): The request `Origin` is not in the client's Allowed Web Origins.\n- `audience_not_found` (403): The `audience` does not name an API registered in this account.\n- `system_resource` (403): The resource is managed by Faable and cannot be modified or deleted.\n- `invalid_request` (400): A required OAuth parameter is missing or two of them are incompatible. `message` says which.\n- `invalid_device_code` (400): The device or user code is invalid or expired.\n- `provider_error` (400): The upstream identity provider returned an error. The suffix is the provider’s own code, when it sent one: `provider_error:bad_refresh_token` (the user must re-authorize), `provider_error:incorrect_client_credentials` (our configuration, the user can do nothing). `details.provider_error_description` carries the provider’s sentence.\n- `identity_already_linked` (409): That external identity is already linked to another user.\n- `identity_link_denied` (409): That external identity cannot be linked to this user.\n- `identity_conflict` (409): The user already has a linked identity for this connection.\n- `identity_orphaned` (400): The identity pointed at a user that no longer exists; it was removed. Sign in again.\n- `no_provider_token` (400): The identity holds no provider access token.\n- `no_refresh_token` (400): The identity holds no provider refresh token, so it cannot be refreshed.\n- `action_unavailable` (401): The Action that paused this login is disabled or belongs elsewhere.\n- `login_flow_misconfigured` (500): The login flow of this account cannot run. `message` carries the node error.\n- `mfa_required` (403): The login needs a second factor that this flow cannot collect, or one is still pending on the session.\n- `step_up_required` (403): Confirm an existing factor before changing your factors.\n- `reauth_required` (403): The operation needs a recent sign-in (and the second factor, when the user has one). Sign in again with `max_age=0` and retry with the new token.\n- `invalid_current_password` (400): The current password is wrong.\n- `email_not_verified` (403): The user's email is not verified, and the operation needs it to be.\n- `invalid_profile_field` (400): A profile field is not declared for this application, or its value does not match the declaration. `message` names the key.\n- `interaction_required` (403): An Action asked for a redirect on a non-interactive flow.\n- `passkey_login_disabled` (400): Sign in with a passkey is not enabled for this client.\n- `mfa_pending` (401): A second-factor challenge is pending; answer it before continuing.\n- `mfa_invalid_code` (401): The authenticator code did not verify.\n- `mfa_invalid_recovery_code` (401): The recovery code did not verify.\n- `too_many_attempts` (429): Too many wrong codes. Wait a few minutes and try again.\n- `too_many_login_attempts` (429): Too many failed sign-in attempts for this email or username from this network. Wait a few minutes and try again.\n- `totp_not_allowed` (401): This account does not accept authenticator apps.\n- `no_usable_factor` (400): The user has no confirmed second factor to challenge.\n- `factor_not_found` (400): No factor with that id belongs to this user.\n- `factor_already_confirmed` (400): The factor was already confirmed.\n- `invalid_factor` (400): The factor cannot be verified (no secret material).\n- `session_missing` (401): The session that started this login no longer exists.\n- `passkey_verification_failed` (400): The WebAuthn response could not be verified.\n- `no_passkey_enrolled` (400): The user has no passkey to sign in with.\n- `malformed_credential` (400): The WebAuthn credential is malformed.\n- `unknown_passkey` (401): The passkey is not enrolled for this user.\n- `invalid_passkey` (401): The passkey assertion did not verify.\n- `invalid_invite_url` (400): An invite's `accept_url` or `redirect_uri` is not an http(s) URL at an origin of this tenant's client callbacks or `callback_hostnames`, or it carries a fragment.\n- `invite_email_mismatch` (403): The invite is for another email address than the accepting user's. `details.invited_email` shows it masked.\n- `invite_email_unverified` (403): The accepting user's email matches the invite but is not verified yet.\n- `invite_not_found` (404): No invite with that id in this account.\n- `invite_used` (400): The invite was already accepted.\n- `already_member` (400): The user is already a member of the team.\n- `not_a_member` (404): The user is not a member of the team.\n- `consent_options_unavailable` (502): The consent screen could not load the choices from the API being authorized (its `consent_options.url`). Try again in a moment.\n- `consent_choice_invalid` (400): The choice sent with the consent decision is not one the API offered for this user.\n- `oauth21_required` (400): The tenant enforces OAuth 2.1 (`oauth21_enabled`) and the request is one OAuth 2.1 removed: a `response_type` other than `code`, an authorization request without PKCE (`code_challenge` with `S256`), or the password grant. `message` says which. Update the application (with `@faable/auth-js`, version 3.1.0 or later) or turn `oauth21_enabled` off for the tenant.\n- `registration_disabled` (403): Dynamic client registration is turned off for this tenant. Create the client from the dashboard or the Management API, or turn on `dynamic_client_registration_enabled`.\n- `invalid_email_domain` (400): Not an email domain this organization can claim: it must be a plain domain name (`acme.com`), lowercase, without scheme, path or wildcard.\n- `public_email_domain` (400): A public email provider (gmail.com, outlook.com…) cannot belong to an organization: anyone can have an address there.\n- `organization_domain_not_found` (404): The organization has no such domain.\n- `organization_domain_taken` (409): Another organization of this tenant already verified this domain. A domain belongs to one organization.\n- `organization_domain_unverified` (400): The TXT record was not found or does not hold the expected value yet. `details.record` says what was expected and what resolves now; DNS can take a few minutes to propagate.\n- `plan_unavailable` (503): The plan could not be checked right now, and this setting is only for paid plans. Try again in a minute.\n- `organization_domain_mismatch` (403): This organization's identity provider can only sign in addresses of the organization's verified email domains.\n- `team_not_in_organization` (400): Auto-join can only put people in teams of the same organization. `details.teams` lists the others.\n- `organization_has_no_idp` (400): Requiring SSO needs an identity provider: bind an `oidc` connection to the organization first.\n- `organization_not_found` (404): No organization with that id in this account.\n- `invalid_user` (400): The user does not exist in this account.\n- `not_an_organization_admin` (404): The user is not an admin of the organization.\n- `last_organization_admin` (409): An organization keeps at least one admin. Add another admin before removing this one.\n- `team_id_unavailable` (409): The team id cannot be used in this tenant. Pick another id or let the API generate one.\n- `use_team_member_route` (400): This generic route cannot create memberships. Use `POST /team/{team_id}/member` for team members or `POST /role/{role_id}/users` for role grants.\n- `role_not_found` (404): No role with that id in this account.\n- `invalid_role` (400): The role belongs to another account.\n- `invalid_permission` (400): A permission is not in the catalog of its Api, or the Api is not in this account. `details.permissions` lists the ones refused.\n- `flow_not_found` (400): The login flow does not exist in this account.\n- `revision_not_found` (404): The revision is not in the flow history.\n- `invalid_webhook_event` (400): An event is not in the webhook event catalog. `message` and `details.valid_events` list the valid ones.\n- `invalid_webhook_url` (400): The webhook URL must be an absolute `https` URL.\n- `not_a_webhook` (400): The operation only applies to `webhook` subscriptions.\n- `delivery_not_found` (404): No webhook delivery with that id for this subscription.\n- `delivery_in_progress` (409): The delivery is being attempted right now; retry the redeliver in a minute.\n- `account_mismatch` (400): The `account_id` in the body is not the account the request is scoped to (`x-faableauth-account`).\n- `connect_redirect_uri_missing` (400): The client's callbacks do not include `<site_url>/wp-login.php?faable-auth=callback`.\n- `invalid_site_url` (400): `site_url` is not an absolute http(s) URL without query string or fragment.\n- `handoff_not_found` (404): No connect handoff matches that code.\n- `handoff_expired` (410): The connect handoff is past its expiry. Start again.\n- `handoff_used` (410): The connect handoff was already redeemed.\n- `invalid_code_verifier` (400): `code_verifier` does not match the `code_challenge` of the handoff.",
|
|
9893
|
+
"description": "Machine-readable error code. One HTTP status per code.\n\n- `bad_request` (400): The request is malformed. `message` says what is wrong.\n- `validation_error` (400): The body, query or path failed schema validation. `details.issues` lists each failing field.\n- `unauthorized` (401): The request carries no valid credentials.\n- `payment_required` (402): The feature is not included in the current plan.\n- `forbidden` (403): The credentials are valid but do not allow this operation.\n- `not_found` (404): The resource does not exist in this account.\n- `method_not_allowed` (405): The HTTP method is not supported on this path.\n- `conflict` (409): The request conflicts with the current state of the resource.\n- `last_sign_in_method` (409): Unlinking this account would leave the user with no way to sign in: set a password, verify the email or link another account first.\n- `payload_too_large` (413): The request body exceeds the size limit.\n- `unsupported_media_type` (415): The `Content-Type` is not accepted by this endpoint.\n- `unprocessable_entity` (422): The request is well-formed but cannot be processed.\n- `too_many_requests` (429): Rate limit exceeded. Honour the `Retry-After` header.\n- `internal_error` (500): Unexpected server error. Retry later; the request id is logged.\n- `already_exists` (400): A resource with the same unique field already exists (for a user, usually `email`). `details.fields` names the field.\n- `invalid_id` (400): The id in the path is not a valid id for this resource.\n- `account_not_found` (404): No Auth Account matches the request (domain, header or token).\n- `invalid_query` (400): The `?query=` FaableQL expression could not be parsed.\n- `search_not_supported` (400): This resource does not support `?search=`.\n- `invalid_expand` (400): An `?expand=` path is not allowed on this resource.\n- `access_denied` (403): The caller may not access this row (ownership or machine-to-machine restriction).\n- `insufficient_scope` (403): The token lacks a scope this operation requires. `message` names it.\n- `team_required` (400): An Auth Account must belong to a project (team).\n- `account_limit_reached` (409): The project already has the maximum number of Auth Accounts.\n- `invalid_project_id` (400): The project id is not of the form `project_<hex>` or `team_<hex>`.\n- `account_transfer_refused` (409): The Auth Account cannot be moved to that project. `details.blockers` lists why.\n- `email_sender_domain_not_allowed` (400): The sender address is not in a domain this platform signs email for (AUTH_EMAIL_SENDER_DOMAINS).\n- `plan_required` (402): The setting requires a higher plan. `message` says which.\n- `invalid_canonical_host` (400): `canonical_host` must be this account's own platform host or one of its verified custom domains.\n- `canonical_host_breaks_passkeys` (400): `canonical_host` is outside the account's current WebAuthn RP ID — every passkey already enrolled would stop working. Set `webauthn_rp_id` in the same request to a suffix that covers both.\n- `not_logged_in` (401): There is no signed-in session for this request.\n- `session_already_revoked` (409): The session was already revoked.\n- `invalid_token` (401): The bearer token is missing, malformed, expired or has no subject.\n- `not_owner` (403): The caller may only perform this operation on their own user.\n- `user_suspended` (403): The user is suspended and cannot sign in or be modified.\n- `invalid_credentials` (400): The email/username or password is incorrect.\n- `login_denied` (401): A post-login Action denied the sign-in. `message` carries the reason it gave. On token grants it is a 403 with `error: invalid_grant`.\n- `signup_denied` (403): A pre-signup Action or an active block denied the sign-up. `message` carries the reason.\n- `client_credentials_denied` (401): An Action denied the client_credentials grant. `message` carries the reason.\n- `m2m_quota_exceeded` (402): The project used the machine-to-machine tokens its plan includes this month. Free is capped; Hobby and Pro are billed per token instead.\n- `signup_disabled` (403): Self-service sign-up is disabled on this connection.\n- `email_taken` (409): Another user in this account already uses that email.\n- `username_taken` (409): Another user of this database connection already uses that username.\n- `invalid_username` (400): The username is empty, or contains an `@` or whitespace. `message` says which.\n- `invalid_email` (400): The email address is not valid.\n- `invalid_name` (400): The name contains a link. `message` says which field.\n- `same_email` (400): The new email is the same as the current one.\n- `user_has_no_email` (400): The operation needs an email but the user has none.\n- `password_too_weak` (400): The password does not meet the connection policy. `message` lists each unmet rule.\n- `invalid_password_hash` (400): The imported password hash cannot be read, or its cost is above what a login can afford. `message` names the field.\n- `weak_password_hash` (400): The imported password hash uses a fast digest (MD5, SHA-1, SHA-2) or a cost below the minimum. `message` says which.\n- `invalid_code` (400): The verification code is wrong, expired or already used.\n- `invalid_phone` (400): The phone number is not E.164 and could not be resolved with the account default country. Include the country code.\n- `phone_changed` (400): The phone on the user changed after the code was sent. Start again.\n- `phone_already_verified` (409): The user already has a verified phone; the number cannot be swapped from the screen.\n- `sms_unavailable` (409): This account cannot send SMS right now. The suffix says why: `sms_unavailable:plan`, `:quota`, `:provider`.\n- `sms_failed` (409): The SMS provider rejected the message.\n- `invalid_state` (400): The `state` is missing, expired, or does not describe a resumable step.\n- `state_mismatch` (401): The `state` belongs to another account, session, client or ceremony.\n- `invalid_ticket` (400): The ticket does not exist or is not the kind this endpoint accepts.\n- `ticket_used` (400): The ticket was already consumed.\n- `ticket_expired` (400): The ticket is past its expiry.\n- `ticket_not_found` (404): No ticket with that id belongs to this user.\n- `credential_not_found` (404): The user has no password credential on this connection.\n- `invalid_link` (400): The magic link is malformed.\n- `expired_link` (400): The magic link token was not found or has expired.\n- `invalid_otp` (401): The one-time password is wrong or expired.\n- `invalid_client` (400): The `client_id` in the request does not name a client of this account.\n- `client_not_found` (404): No client with that `client_id`.\n- `client_mismatch` (401): The client belongs to a different account.\n- `invalid_client_metadata` (400): A client field was rejected: by dynamic client registration (RFC 7591), or on a client create/update (`initiate_login_uri`). `message` names it.\n- `invalid_connection` (400): The connection does not exist, is disabled, or is not of the type this flow needs.\n- `no_database_connection` (400): The tenant has no database connection, so there is nowhere to store a password. Create one and retry.\n- `connection_required` (400): No connection was given and the client has no `default_connection`.\n- `connection_misconfigured` (400): The connection is missing settings needed to talk to its provider.\n- `passwordless_unavailable` (400): No passwordless connection is configured or enabled for this client.\n- `ambiguous_connection` (400): Several connections match; pass `connection_id`.\n- `invalid_redirect_uri` (400): The redirect URI is not registered for the client.\n- `invalid_saml_request` (400): The SAMLRequest is missing, too large, not well-formed or not a SAML 2.0 AuthnRequest.\n- `saml_sp_mismatch` (400): The AuthnRequest does not match the client's SAML configuration: its Issuer is not the configured entity_id, or it asks for another Assertion Consumer Service URL or binding.\n- `saml_not_enabled` (404): This client does not have SAML enabled.\n- `invalid_client_jwks` (400): The client `jwks` is not a valid set of public signing keys: RSA (2048 bits or more), EC (P-256, P-384, P-521) or Ed25519, public members only, up to 5, each with a `kid` when there is more than one.\n- `client_jwks_required` (400): A client whose `token_endpoint_auth_method` is `private_key_jwt` needs public keys in `jwks`.\n- `invalid_saml_sp` (400): The `saml_sp` configuration is invalid: `acs_url` must be an absolute https URL without a fragment.\n- `origin_not_allowed` (403): The request `Origin` is not in the client's Allowed Web Origins.\n- `audience_not_found` (403): The `audience` does not name an API registered in this account.\n- `system_resource` (403): The resource is managed by Faable and cannot be modified or deleted.\n- `invalid_request` (400): A required OAuth parameter is missing or two of them are incompatible. `message` says which.\n- `invalid_device_code` (400): The device or user code is invalid or expired.\n- `provider_error` (400): The upstream identity provider returned an error. The suffix is the provider’s own code, when it sent one: `provider_error:bad_refresh_token` (the user must re-authorize), `provider_error:incorrect_client_credentials` (our configuration, the user can do nothing). `details.provider_error_description` carries the provider’s sentence.\n- `identity_already_linked` (409): That external identity is already linked to another user.\n- `identity_link_denied` (409): That external identity cannot be linked to this user.\n- `identity_conflict` (409): The user already has a linked identity for this connection.\n- `identity_orphaned` (400): The identity pointed at a user that no longer exists; it was removed. Sign in again.\n- `no_provider_token` (400): The identity holds no provider access token.\n- `no_refresh_token` (400): The identity holds no provider refresh token, so it cannot be refreshed.\n- `action_unavailable` (401): The Action that paused this login is disabled or belongs elsewhere.\n- `login_flow_misconfigured` (500): The login flow of this account cannot run. `message` carries the node error.\n- `mfa_required` (403): The login needs a second factor that this flow cannot collect, or one is still pending on the session.\n- `step_up_required` (403): Confirm an existing factor before changing your factors.\n- `reauth_required` (403): The operation needs a recent sign-in (and the second factor, when the user has one). Sign in again with `max_age=0` and retry with the new token.\n- `invalid_current_password` (400): The current password is wrong.\n- `email_not_verified` (403): The user's email is not verified, and the operation needs it to be.\n- `invalid_profile_field` (400): A profile field is not declared for this application, or its value does not match the declaration. `message` names the key.\n- `interaction_required` (403): An Action asked for a redirect on a non-interactive flow.\n- `passkey_login_disabled` (400): Sign in with a passkey is not enabled for this client.\n- `mfa_pending` (401): A second-factor challenge is pending; answer it before continuing.\n- `mfa_invalid_code` (401): The authenticator code did not verify.\n- `mfa_invalid_recovery_code` (401): The recovery code did not verify.\n- `too_many_attempts` (429): Too many wrong codes. Wait a few minutes and try again.\n- `too_many_login_attempts` (429): Too many failed sign-in attempts for this email or username from this network. Wait a few minutes and try again.\n- `totp_not_allowed` (401): This account does not accept authenticator apps.\n- `no_usable_factor` (400): The user has no confirmed second factor to challenge.\n- `factor_not_found` (400): No factor with that id belongs to this user.\n- `factor_already_confirmed` (400): The factor was already confirmed.\n- `invalid_factor` (400): The factor cannot be verified (no secret material).\n- `session_missing` (401): The session that started this login no longer exists.\n- `passkey_verification_failed` (400): The WebAuthn response could not be verified.\n- `no_passkey_enrolled` (400): The user has no passkey to sign in with.\n- `malformed_credential` (400): The WebAuthn credential is malformed.\n- `unknown_passkey` (401): The passkey is not enrolled for this user.\n- `invalid_passkey` (401): The passkey assertion did not verify.\n- `invalid_invite_url` (400): An invite's `accept_url` or `redirect_uri` is not an http(s) URL at an origin of this tenant's client callbacks or `callback_hostnames`, or it carries a fragment.\n- `invite_email_mismatch` (403): The invite is for another email address than the accepting user's. `details.invited_email` shows it masked.\n- `invite_email_unverified` (403): The accepting user's email matches the invite but is not verified yet.\n- `invite_not_found` (404): No invite with that id in this account.\n- `invite_used` (400): The invite was already accepted.\n- `already_member` (400): The user is already a member of the team.\n- `not_a_member` (404): The user is not a member of the team.\n- `consent_options_unavailable` (502): The consent screen could not load the choices from the API being authorized (its `consent_options.url`). Try again in a moment.\n- `consent_choice_invalid` (400): The choice sent with the consent decision is not one the API offered for this user.\n- `oauth21_required` (400): The tenant enforces OAuth 2.1 (`oauth21_enabled`) and the request is one OAuth 2.1 removed: a `response_type` other than `code`, an authorization request without PKCE (`code_challenge` with `S256`), or the password grant. `message` says which. Update the application (with `@faable/auth-js`, version 3.1.0 or later) or turn `oauth21_enabled` off for the tenant.\n- `registration_disabled` (403): Dynamic client registration is turned off for this tenant. Create the client from the dashboard or the Management API, or turn on `dynamic_client_registration_enabled`.\n- `invalid_email_domain` (400): Not an email domain this organization can claim: it must be a plain domain name (`acme.com`), lowercase, without scheme, path or wildcard.\n- `public_email_domain` (400): A public email provider (gmail.com, outlook.com…) cannot belong to an organization: anyone can have an address there.\n- `organization_domain_not_found` (404): The organization has no such domain.\n- `organization_domain_taken` (409): Another organization of this tenant already verified this domain. A domain belongs to one organization.\n- `organization_domain_unverified` (400): The TXT record was not found or does not hold the expected value yet. `details.record` says what was expected and what resolves now; DNS can take a few minutes to propagate.\n- `plan_unavailable` (503): The plan could not be checked right now, and this setting is only for paid plans. Try again in a minute.\n- `organization_domain_mismatch` (403): This organization's identity provider can only sign in addresses of the organization's verified email domains.\n- `team_not_in_organization` (400): Auto-join can only put people in teams of the same organization. `details.teams` lists the others.\n- `organization_has_no_idp` (400): Requiring SSO needs an identity provider: bind an `oidc` connection to the organization first.\n- `organization_not_found` (404): No organization with that id in this account.\n- `invalid_user` (400): The user does not exist in this account.\n- `not_an_organization_admin` (404): The user is not an admin of the organization.\n- `last_organization_admin` (409): An organization keeps at least one admin. Add another admin before removing this one.\n- `team_id_unavailable` (409): The team id cannot be used in this tenant. Pick another id or let the API generate one.\n- `use_team_member_route` (400): This generic route cannot create memberships. Use `POST /team/{team_id}/member` for team members or `POST /role/{role_id}/users` for role grants.\n- `role_not_found` (404): No role with that id in this account.\n- `invalid_role` (400): The role belongs to another account.\n- `invalid_permission` (400): A permission is not in the catalog of its Api, or the Api is not in this account. `details.permissions` lists the ones refused.\n- `flow_not_found` (400): The login flow does not exist in this account.\n- `revision_not_found` (404): The revision is not in the flow history.\n- `invalid_webhook_event` (400): An event is not in the webhook event catalog. `message` and `details.valid_events` list the valid ones.\n- `invalid_webhook_url` (400): The webhook URL must be an absolute `https` URL.\n- `not_a_webhook` (400): The operation only applies to `webhook` subscriptions.\n- `delivery_not_found` (404): No webhook delivery with that id for this subscription.\n- `delivery_in_progress` (409): The delivery is being attempted right now; retry the redeliver in a minute.\n- `account_mismatch` (400): The `account_id` in the body is not the account the request is scoped to (`x-faableauth-account`).\n- `connect_redirect_uri_missing` (400): The client's callbacks do not include `<site_url>/wp-login.php?faable-auth=callback`.\n- `invalid_site_url` (400): `site_url` is not an absolute http(s) URL without query string or fragment.\n- `handoff_not_found` (404): No connect handoff matches that code.\n- `handoff_expired` (410): The connect handoff is past its expiry. Start again.\n- `handoff_used` (410): The connect handoff was already redeemed.\n- `invalid_code_verifier` (400): `code_verifier` does not match the `code_challenge` of the handoff.",
|
|
9760
9894
|
"enum": [
|
|
9761
9895
|
"bad_request",
|
|
9762
9896
|
"validation_error",
|
|
@@ -9839,6 +9973,8 @@
|
|
|
9839
9973
|
"invalid_saml_request",
|
|
9840
9974
|
"saml_sp_mismatch",
|
|
9841
9975
|
"saml_not_enabled",
|
|
9976
|
+
"invalid_client_jwks",
|
|
9977
|
+
"client_jwks_required",
|
|
9842
9978
|
"invalid_saml_sp",
|
|
9843
9979
|
"origin_not_allowed",
|
|
9844
9980
|
"audience_not_found",
|
|
@@ -9960,90 +10096,6 @@
|
|
|
9960
10096
|
}
|
|
9961
10097
|
},
|
|
9962
10098
|
"paths": {
|
|
9963
|
-
"/webhooks/postmark": {
|
|
9964
|
-
"post": {
|
|
9965
|
-
"responses": {
|
|
9966
|
-
"200": {
|
|
9967
|
-
"description": "Default Response"
|
|
9968
|
-
},
|
|
9969
|
-
"404": {
|
|
9970
|
-
"description": "`account_not_found` — No Auth Account matches the request (domain, header or token).",
|
|
9971
|
-
"content": {
|
|
9972
|
-
"application/json": {
|
|
9973
|
-
"schema": {
|
|
9974
|
-
"allOf": [
|
|
9975
|
-
{
|
|
9976
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
9977
|
-
},
|
|
9978
|
-
{
|
|
9979
|
-
"type": "object",
|
|
9980
|
-
"properties": {
|
|
9981
|
-
"error_code": {
|
|
9982
|
-
"type": "string",
|
|
9983
|
-
"enum": [
|
|
9984
|
-
"account_not_found"
|
|
9985
|
-
]
|
|
9986
|
-
}
|
|
9987
|
-
}
|
|
9988
|
-
}
|
|
9989
|
-
]
|
|
9990
|
-
}
|
|
9991
|
-
}
|
|
9992
|
-
}
|
|
9993
|
-
},
|
|
9994
|
-
"429": {
|
|
9995
|
-
"description": "`too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header.",
|
|
9996
|
-
"content": {
|
|
9997
|
-
"application/json": {
|
|
9998
|
-
"schema": {
|
|
9999
|
-
"allOf": [
|
|
10000
|
-
{
|
|
10001
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
10002
|
-
},
|
|
10003
|
-
{
|
|
10004
|
-
"type": "object",
|
|
10005
|
-
"properties": {
|
|
10006
|
-
"error_code": {
|
|
10007
|
-
"type": "string",
|
|
10008
|
-
"enum": [
|
|
10009
|
-
"too_many_requests"
|
|
10010
|
-
]
|
|
10011
|
-
}
|
|
10012
|
-
}
|
|
10013
|
-
}
|
|
10014
|
-
]
|
|
10015
|
-
}
|
|
10016
|
-
}
|
|
10017
|
-
}
|
|
10018
|
-
},
|
|
10019
|
-
"500": {
|
|
10020
|
-
"description": "`internal_error` — Unexpected server error. Retry later; the request id is logged.",
|
|
10021
|
-
"content": {
|
|
10022
|
-
"application/json": {
|
|
10023
|
-
"schema": {
|
|
10024
|
-
"allOf": [
|
|
10025
|
-
{
|
|
10026
|
-
"$ref": "#/components/schemas/ErrorResponse"
|
|
10027
|
-
},
|
|
10028
|
-
{
|
|
10029
|
-
"type": "object",
|
|
10030
|
-
"properties": {
|
|
10031
|
-
"error_code": {
|
|
10032
|
-
"type": "string",
|
|
10033
|
-
"enum": [
|
|
10034
|
-
"internal_error"
|
|
10035
|
-
]
|
|
10036
|
-
}
|
|
10037
|
-
}
|
|
10038
|
-
}
|
|
10039
|
-
]
|
|
10040
|
-
}
|
|
10041
|
-
}
|
|
10042
|
-
}
|
|
10043
|
-
}
|
|
10044
|
-
}
|
|
10045
|
-
}
|
|
10046
|
-
},
|
|
10047
10099
|
"/account/current": {
|
|
10048
10100
|
"get": {
|
|
10049
10101
|
"operationId": "account/current",
|
|
@@ -21245,6 +21297,79 @@
|
|
|
21245
21297
|
"token_endpoint_auth_method": {
|
|
21246
21298
|
"type": "string"
|
|
21247
21299
|
},
|
|
21300
|
+
"jwks": {
|
|
21301
|
+
"type": "object",
|
|
21302
|
+
"required": [
|
|
21303
|
+
"keys"
|
|
21304
|
+
],
|
|
21305
|
+
"properties": {
|
|
21306
|
+
"keys": {
|
|
21307
|
+
"type": "array",
|
|
21308
|
+
"items": {
|
|
21309
|
+
"type": "object",
|
|
21310
|
+
"required": [
|
|
21311
|
+
"kty"
|
|
21312
|
+
],
|
|
21313
|
+
"properties": {
|
|
21314
|
+
"kty": {
|
|
21315
|
+
"type": "string",
|
|
21316
|
+
"description": "`RSA`, `EC` or `OKP`."
|
|
21317
|
+
},
|
|
21318
|
+
"kid": {
|
|
21319
|
+
"type": "string",
|
|
21320
|
+
"description": "Key id. Required when the set has more than one key; the assertion names it in its header."
|
|
21321
|
+
},
|
|
21322
|
+
"use": {
|
|
21323
|
+
"type": "string"
|
|
21324
|
+
},
|
|
21325
|
+
"alg": {
|
|
21326
|
+
"type": "string"
|
|
21327
|
+
},
|
|
21328
|
+
"n": {
|
|
21329
|
+
"type": "string"
|
|
21330
|
+
},
|
|
21331
|
+
"e": {
|
|
21332
|
+
"type": "string"
|
|
21333
|
+
},
|
|
21334
|
+
"crv": {
|
|
21335
|
+
"type": "string"
|
|
21336
|
+
},
|
|
21337
|
+
"x": {
|
|
21338
|
+
"type": "string"
|
|
21339
|
+
},
|
|
21340
|
+
"y": {
|
|
21341
|
+
"type": "string"
|
|
21342
|
+
}
|
|
21343
|
+
},
|
|
21344
|
+
"additionalProperties": true
|
|
21345
|
+
},
|
|
21346
|
+
"maxItems": 5
|
|
21347
|
+
}
|
|
21348
|
+
},
|
|
21349
|
+
"description": "Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime.",
|
|
21350
|
+
"nullable": true
|
|
21351
|
+
},
|
|
21352
|
+
"jwks_usage": {
|
|
21353
|
+
"type": "array",
|
|
21354
|
+
"items": {
|
|
21355
|
+
"type": "object",
|
|
21356
|
+
"required": [
|
|
21357
|
+
"kid",
|
|
21358
|
+
"last_used_at"
|
|
21359
|
+
],
|
|
21360
|
+
"properties": {
|
|
21361
|
+
"kid": {
|
|
21362
|
+
"type": "string"
|
|
21363
|
+
},
|
|
21364
|
+
"last_used_at": {
|
|
21365
|
+
"type": "string",
|
|
21366
|
+
"format": "date-time"
|
|
21367
|
+
}
|
|
21368
|
+
}
|
|
21369
|
+
},
|
|
21370
|
+
"description": "When each `jwks` key last signed a client assertion, by `kid` (empty for a key without one). Precise to 5 minutes. Read-only.",
|
|
21371
|
+
"nullable": true
|
|
21372
|
+
},
|
|
21248
21373
|
"consent_required": {
|
|
21249
21374
|
"type": "boolean",
|
|
21250
21375
|
"description": "When true, /authorize never issues a code in silence for this client: the End-User approves it on the consent screen first. Set on clients the tenant did not create (Client ID Metadata Documents, dynamic registration)."
|
|
@@ -22067,6 +22192,79 @@
|
|
|
22067
22192
|
"token_endpoint_auth_method": {
|
|
22068
22193
|
"type": "string"
|
|
22069
22194
|
},
|
|
22195
|
+
"jwks": {
|
|
22196
|
+
"type": "object",
|
|
22197
|
+
"required": [
|
|
22198
|
+
"keys"
|
|
22199
|
+
],
|
|
22200
|
+
"properties": {
|
|
22201
|
+
"keys": {
|
|
22202
|
+
"type": "array",
|
|
22203
|
+
"items": {
|
|
22204
|
+
"type": "object",
|
|
22205
|
+
"required": [
|
|
22206
|
+
"kty"
|
|
22207
|
+
],
|
|
22208
|
+
"properties": {
|
|
22209
|
+
"kty": {
|
|
22210
|
+
"type": "string",
|
|
22211
|
+
"description": "`RSA`, `EC` or `OKP`."
|
|
22212
|
+
},
|
|
22213
|
+
"kid": {
|
|
22214
|
+
"type": "string",
|
|
22215
|
+
"description": "Key id. Required when the set has more than one key; the assertion names it in its header."
|
|
22216
|
+
},
|
|
22217
|
+
"use": {
|
|
22218
|
+
"type": "string"
|
|
22219
|
+
},
|
|
22220
|
+
"alg": {
|
|
22221
|
+
"type": "string"
|
|
22222
|
+
},
|
|
22223
|
+
"n": {
|
|
22224
|
+
"type": "string"
|
|
22225
|
+
},
|
|
22226
|
+
"e": {
|
|
22227
|
+
"type": "string"
|
|
22228
|
+
},
|
|
22229
|
+
"crv": {
|
|
22230
|
+
"type": "string"
|
|
22231
|
+
},
|
|
22232
|
+
"x": {
|
|
22233
|
+
"type": "string"
|
|
22234
|
+
},
|
|
22235
|
+
"y": {
|
|
22236
|
+
"type": "string"
|
|
22237
|
+
}
|
|
22238
|
+
},
|
|
22239
|
+
"additionalProperties": true
|
|
22240
|
+
},
|
|
22241
|
+
"maxItems": 5
|
|
22242
|
+
}
|
|
22243
|
+
},
|
|
22244
|
+
"description": "Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime.",
|
|
22245
|
+
"nullable": true
|
|
22246
|
+
},
|
|
22247
|
+
"jwks_usage": {
|
|
22248
|
+
"type": "array",
|
|
22249
|
+
"items": {
|
|
22250
|
+
"type": "object",
|
|
22251
|
+
"required": [
|
|
22252
|
+
"kid",
|
|
22253
|
+
"last_used_at"
|
|
22254
|
+
],
|
|
22255
|
+
"properties": {
|
|
22256
|
+
"kid": {
|
|
22257
|
+
"type": "string"
|
|
22258
|
+
},
|
|
22259
|
+
"last_used_at": {
|
|
22260
|
+
"type": "string",
|
|
22261
|
+
"format": "date-time"
|
|
22262
|
+
}
|
|
22263
|
+
}
|
|
22264
|
+
},
|
|
22265
|
+
"description": "When each `jwks` key last signed a client assertion, by `kid` (empty for a key without one). Precise to 5 minutes. Read-only.",
|
|
22266
|
+
"nullable": true
|
|
22267
|
+
},
|
|
22070
22268
|
"consent_required": {
|
|
22071
22269
|
"type": "boolean",
|
|
22072
22270
|
"description": "When true, /authorize never issues a code in silence for this client: the End-User approves it on the consent screen first. Set on clients the tenant did not create (Client ID Metadata Documents, dynamic registration)."
|
|
@@ -22910,7 +23108,60 @@
|
|
|
22910
23108
|
}
|
|
22911
23109
|
},
|
|
22912
23110
|
"token_endpoint_auth_method": {
|
|
22913
|
-
"type": "string"
|
|
23111
|
+
"type": "string",
|
|
23112
|
+
"description": "How the client authenticates at the token endpoint: `client_secret_basic`, `client_secret_post`, `private_key_jwt` (needs `jwks`; the client_secret then stops working) or `none` (public client)."
|
|
23113
|
+
},
|
|
23114
|
+
"jwks": {
|
|
23115
|
+
"type": "object",
|
|
23116
|
+
"required": [
|
|
23117
|
+
"keys"
|
|
23118
|
+
],
|
|
23119
|
+
"properties": {
|
|
23120
|
+
"keys": {
|
|
23121
|
+
"type": "array",
|
|
23122
|
+
"items": {
|
|
23123
|
+
"type": "object",
|
|
23124
|
+
"required": [
|
|
23125
|
+
"kty"
|
|
23126
|
+
],
|
|
23127
|
+
"properties": {
|
|
23128
|
+
"kty": {
|
|
23129
|
+
"type": "string",
|
|
23130
|
+
"description": "`RSA`, `EC` or `OKP`."
|
|
23131
|
+
},
|
|
23132
|
+
"kid": {
|
|
23133
|
+
"type": "string",
|
|
23134
|
+
"description": "Key id. Required when the set has more than one key; the assertion names it in its header."
|
|
23135
|
+
},
|
|
23136
|
+
"use": {
|
|
23137
|
+
"type": "string"
|
|
23138
|
+
},
|
|
23139
|
+
"alg": {
|
|
23140
|
+
"type": "string"
|
|
23141
|
+
},
|
|
23142
|
+
"n": {
|
|
23143
|
+
"type": "string"
|
|
23144
|
+
},
|
|
23145
|
+
"e": {
|
|
23146
|
+
"type": "string"
|
|
23147
|
+
},
|
|
23148
|
+
"crv": {
|
|
23149
|
+
"type": "string"
|
|
23150
|
+
},
|
|
23151
|
+
"x": {
|
|
23152
|
+
"type": "string"
|
|
23153
|
+
},
|
|
23154
|
+
"y": {
|
|
23155
|
+
"type": "string"
|
|
23156
|
+
}
|
|
23157
|
+
},
|
|
23158
|
+
"additionalProperties": true
|
|
23159
|
+
},
|
|
23160
|
+
"maxItems": 5
|
|
23161
|
+
}
|
|
23162
|
+
},
|
|
23163
|
+
"description": "Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime.",
|
|
23164
|
+
"nullable": true
|
|
22914
23165
|
},
|
|
22915
23166
|
"application_type": {
|
|
22916
23167
|
"type": "string"
|
|
@@ -23576,6 +23827,79 @@
|
|
|
23576
23827
|
"token_endpoint_auth_method": {
|
|
23577
23828
|
"type": "string"
|
|
23578
23829
|
},
|
|
23830
|
+
"jwks": {
|
|
23831
|
+
"type": "object",
|
|
23832
|
+
"required": [
|
|
23833
|
+
"keys"
|
|
23834
|
+
],
|
|
23835
|
+
"properties": {
|
|
23836
|
+
"keys": {
|
|
23837
|
+
"type": "array",
|
|
23838
|
+
"items": {
|
|
23839
|
+
"type": "object",
|
|
23840
|
+
"required": [
|
|
23841
|
+
"kty"
|
|
23842
|
+
],
|
|
23843
|
+
"properties": {
|
|
23844
|
+
"kty": {
|
|
23845
|
+
"type": "string",
|
|
23846
|
+
"description": "`RSA`, `EC` or `OKP`."
|
|
23847
|
+
},
|
|
23848
|
+
"kid": {
|
|
23849
|
+
"type": "string",
|
|
23850
|
+
"description": "Key id. Required when the set has more than one key; the assertion names it in its header."
|
|
23851
|
+
},
|
|
23852
|
+
"use": {
|
|
23853
|
+
"type": "string"
|
|
23854
|
+
},
|
|
23855
|
+
"alg": {
|
|
23856
|
+
"type": "string"
|
|
23857
|
+
},
|
|
23858
|
+
"n": {
|
|
23859
|
+
"type": "string"
|
|
23860
|
+
},
|
|
23861
|
+
"e": {
|
|
23862
|
+
"type": "string"
|
|
23863
|
+
},
|
|
23864
|
+
"crv": {
|
|
23865
|
+
"type": "string"
|
|
23866
|
+
},
|
|
23867
|
+
"x": {
|
|
23868
|
+
"type": "string"
|
|
23869
|
+
},
|
|
23870
|
+
"y": {
|
|
23871
|
+
"type": "string"
|
|
23872
|
+
}
|
|
23873
|
+
},
|
|
23874
|
+
"additionalProperties": true
|
|
23875
|
+
},
|
|
23876
|
+
"maxItems": 5
|
|
23877
|
+
}
|
|
23878
|
+
},
|
|
23879
|
+
"description": "Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime.",
|
|
23880
|
+
"nullable": true
|
|
23881
|
+
},
|
|
23882
|
+
"jwks_usage": {
|
|
23883
|
+
"type": "array",
|
|
23884
|
+
"items": {
|
|
23885
|
+
"type": "object",
|
|
23886
|
+
"required": [
|
|
23887
|
+
"kid",
|
|
23888
|
+
"last_used_at"
|
|
23889
|
+
],
|
|
23890
|
+
"properties": {
|
|
23891
|
+
"kid": {
|
|
23892
|
+
"type": "string"
|
|
23893
|
+
},
|
|
23894
|
+
"last_used_at": {
|
|
23895
|
+
"type": "string",
|
|
23896
|
+
"format": "date-time"
|
|
23897
|
+
}
|
|
23898
|
+
}
|
|
23899
|
+
},
|
|
23900
|
+
"description": "When each `jwks` key last signed a client assertion, by `kid` (empty for a key without one). Precise to 5 minutes. Read-only.",
|
|
23901
|
+
"nullable": true
|
|
23902
|
+
},
|
|
23579
23903
|
"consent_required": {
|
|
23580
23904
|
"type": "boolean",
|
|
23581
23905
|
"description": "When true, /authorize never issues a code in silence for this client: the End-User approves it on the consent screen first. Set on clients the tenant did not create (Client ID Metadata Documents, dynamic registration)."
|
|
@@ -24398,6 +24722,79 @@
|
|
|
24398
24722
|
"token_endpoint_auth_method": {
|
|
24399
24723
|
"type": "string"
|
|
24400
24724
|
},
|
|
24725
|
+
"jwks": {
|
|
24726
|
+
"type": "object",
|
|
24727
|
+
"required": [
|
|
24728
|
+
"keys"
|
|
24729
|
+
],
|
|
24730
|
+
"properties": {
|
|
24731
|
+
"keys": {
|
|
24732
|
+
"type": "array",
|
|
24733
|
+
"items": {
|
|
24734
|
+
"type": "object",
|
|
24735
|
+
"required": [
|
|
24736
|
+
"kty"
|
|
24737
|
+
],
|
|
24738
|
+
"properties": {
|
|
24739
|
+
"kty": {
|
|
24740
|
+
"type": "string",
|
|
24741
|
+
"description": "`RSA`, `EC` or `OKP`."
|
|
24742
|
+
},
|
|
24743
|
+
"kid": {
|
|
24744
|
+
"type": "string",
|
|
24745
|
+
"description": "Key id. Required when the set has more than one key; the assertion names it in its header."
|
|
24746
|
+
},
|
|
24747
|
+
"use": {
|
|
24748
|
+
"type": "string"
|
|
24749
|
+
},
|
|
24750
|
+
"alg": {
|
|
24751
|
+
"type": "string"
|
|
24752
|
+
},
|
|
24753
|
+
"n": {
|
|
24754
|
+
"type": "string"
|
|
24755
|
+
},
|
|
24756
|
+
"e": {
|
|
24757
|
+
"type": "string"
|
|
24758
|
+
},
|
|
24759
|
+
"crv": {
|
|
24760
|
+
"type": "string"
|
|
24761
|
+
},
|
|
24762
|
+
"x": {
|
|
24763
|
+
"type": "string"
|
|
24764
|
+
},
|
|
24765
|
+
"y": {
|
|
24766
|
+
"type": "string"
|
|
24767
|
+
}
|
|
24768
|
+
},
|
|
24769
|
+
"additionalProperties": true
|
|
24770
|
+
},
|
|
24771
|
+
"maxItems": 5
|
|
24772
|
+
}
|
|
24773
|
+
},
|
|
24774
|
+
"description": "Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime.",
|
|
24775
|
+
"nullable": true
|
|
24776
|
+
},
|
|
24777
|
+
"jwks_usage": {
|
|
24778
|
+
"type": "array",
|
|
24779
|
+
"items": {
|
|
24780
|
+
"type": "object",
|
|
24781
|
+
"required": [
|
|
24782
|
+
"kid",
|
|
24783
|
+
"last_used_at"
|
|
24784
|
+
],
|
|
24785
|
+
"properties": {
|
|
24786
|
+
"kid": {
|
|
24787
|
+
"type": "string"
|
|
24788
|
+
},
|
|
24789
|
+
"last_used_at": {
|
|
24790
|
+
"type": "string",
|
|
24791
|
+
"format": "date-time"
|
|
24792
|
+
}
|
|
24793
|
+
}
|
|
24794
|
+
},
|
|
24795
|
+
"description": "When each `jwks` key last signed a client assertion, by `kid` (empty for a key without one). Precise to 5 minutes. Read-only.",
|
|
24796
|
+
"nullable": true
|
|
24797
|
+
},
|
|
24401
24798
|
"consent_required": {
|
|
24402
24799
|
"type": "boolean",
|
|
24403
24800
|
"description": "When true, /authorize never issues a code in silence for this client: the End-User approves it on the consent screen first. Set on clients the tenant did not create (Client ID Metadata Documents, dynamic registration)."
|
|
@@ -25221,6 +25618,79 @@
|
|
|
25221
25618
|
"token_endpoint_auth_method": {
|
|
25222
25619
|
"type": "string"
|
|
25223
25620
|
},
|
|
25621
|
+
"jwks": {
|
|
25622
|
+
"type": "object",
|
|
25623
|
+
"required": [
|
|
25624
|
+
"keys"
|
|
25625
|
+
],
|
|
25626
|
+
"properties": {
|
|
25627
|
+
"keys": {
|
|
25628
|
+
"type": "array",
|
|
25629
|
+
"items": {
|
|
25630
|
+
"type": "object",
|
|
25631
|
+
"required": [
|
|
25632
|
+
"kty"
|
|
25633
|
+
],
|
|
25634
|
+
"properties": {
|
|
25635
|
+
"kty": {
|
|
25636
|
+
"type": "string",
|
|
25637
|
+
"description": "`RSA`, `EC` or `OKP`."
|
|
25638
|
+
},
|
|
25639
|
+
"kid": {
|
|
25640
|
+
"type": "string",
|
|
25641
|
+
"description": "Key id. Required when the set has more than one key; the assertion names it in its header."
|
|
25642
|
+
},
|
|
25643
|
+
"use": {
|
|
25644
|
+
"type": "string"
|
|
25645
|
+
},
|
|
25646
|
+
"alg": {
|
|
25647
|
+
"type": "string"
|
|
25648
|
+
},
|
|
25649
|
+
"n": {
|
|
25650
|
+
"type": "string"
|
|
25651
|
+
},
|
|
25652
|
+
"e": {
|
|
25653
|
+
"type": "string"
|
|
25654
|
+
},
|
|
25655
|
+
"crv": {
|
|
25656
|
+
"type": "string"
|
|
25657
|
+
},
|
|
25658
|
+
"x": {
|
|
25659
|
+
"type": "string"
|
|
25660
|
+
},
|
|
25661
|
+
"y": {
|
|
25662
|
+
"type": "string"
|
|
25663
|
+
}
|
|
25664
|
+
},
|
|
25665
|
+
"additionalProperties": true
|
|
25666
|
+
},
|
|
25667
|
+
"maxItems": 5
|
|
25668
|
+
}
|
|
25669
|
+
},
|
|
25670
|
+
"description": "Public keys (a JWK Set) this client signs its `client_assertion` with when its `token_endpoint_auth_method` is `private_key_jwt`. Public keys only; up to 5, so a key can be rotated without downtime.",
|
|
25671
|
+
"nullable": true
|
|
25672
|
+
},
|
|
25673
|
+
"jwks_usage": {
|
|
25674
|
+
"type": "array",
|
|
25675
|
+
"items": {
|
|
25676
|
+
"type": "object",
|
|
25677
|
+
"required": [
|
|
25678
|
+
"kid",
|
|
25679
|
+
"last_used_at"
|
|
25680
|
+
],
|
|
25681
|
+
"properties": {
|
|
25682
|
+
"kid": {
|
|
25683
|
+
"type": "string"
|
|
25684
|
+
},
|
|
25685
|
+
"last_used_at": {
|
|
25686
|
+
"type": "string",
|
|
25687
|
+
"format": "date-time"
|
|
25688
|
+
}
|
|
25689
|
+
}
|
|
25690
|
+
},
|
|
25691
|
+
"description": "When each `jwks` key last signed a client assertion, by `kid` (empty for a key without one). Precise to 5 minutes. Read-only.",
|
|
25692
|
+
"nullable": true
|
|
25693
|
+
},
|
|
25224
25694
|
"consent_required": {
|
|
25225
25695
|
"type": "boolean",
|
|
25226
25696
|
"description": "When true, /authorize never issues a code in silence for this client: the End-User approves it on the consent screen first. Set on clients the tenant did not create (Client ID Metadata Documents, dynamic registration)."
|
|
@@ -76823,6 +77293,24 @@
|
|
|
76823
77293
|
"name": "client_secret",
|
|
76824
77294
|
"required": false
|
|
76825
77295
|
},
|
|
77296
|
+
{
|
|
77297
|
+
"schema": {
|
|
77298
|
+
"type": "string"
|
|
77299
|
+
},
|
|
77300
|
+
"in": "query",
|
|
77301
|
+
"name": "client_assertion",
|
|
77302
|
+
"required": false,
|
|
77303
|
+
"description": "For a client whose `token_endpoint_auth_method` is `private_key_jwt`: a JWT signed with one of the private keys whose public half is in the client's `jwks`. `iss` and `sub` = client_id, `aud` = this token endpoint, `exp` at most 10 minutes away, a unique `jti`. client_credentials only."
|
|
77304
|
+
},
|
|
77305
|
+
{
|
|
77306
|
+
"schema": {
|
|
77307
|
+
"type": "string"
|
|
77308
|
+
},
|
|
77309
|
+
"in": "query",
|
|
77310
|
+
"name": "client_assertion_type",
|
|
77311
|
+
"required": false,
|
|
77312
|
+
"description": "With `client_assertion`: `urn:ietf:params:oauth:client-assertion-type:jwt-bearer`."
|
|
77313
|
+
},
|
|
76826
77314
|
{
|
|
76827
77315
|
"schema": {
|
|
76828
77316
|
"type": "string"
|
|
@@ -77179,6 +77667,14 @@
|
|
|
77179
77667
|
"client_secret": {
|
|
77180
77668
|
"type": "string"
|
|
77181
77669
|
},
|
|
77670
|
+
"client_assertion": {
|
|
77671
|
+
"type": "string",
|
|
77672
|
+
"description": "For a client whose `token_endpoint_auth_method` is `private_key_jwt`: a JWT signed with one of the private keys whose public half is in the client's `jwks`. `iss` and `sub` = client_id, `aud` = this token endpoint, `exp` at most 10 minutes away, a unique `jti`. client_credentials only."
|
|
77673
|
+
},
|
|
77674
|
+
"client_assertion_type": {
|
|
77675
|
+
"type": "string",
|
|
77676
|
+
"description": "With `client_assertion`: `urn:ietf:params:oauth:client-assertion-type:jwt-bearer`."
|
|
77677
|
+
},
|
|
77182
77678
|
"scope": {
|
|
77183
77679
|
"type": "string"
|
|
77184
77680
|
},
|
|
@@ -77321,6 +77817,24 @@
|
|
|
77321
77817
|
"name": "client_secret",
|
|
77322
77818
|
"required": false
|
|
77323
77819
|
},
|
|
77820
|
+
{
|
|
77821
|
+
"schema": {
|
|
77822
|
+
"type": "string"
|
|
77823
|
+
},
|
|
77824
|
+
"in": "query",
|
|
77825
|
+
"name": "client_assertion",
|
|
77826
|
+
"required": false,
|
|
77827
|
+
"description": "For a client whose `token_endpoint_auth_method` is `private_key_jwt`: a JWT signed with one of the private keys whose public half is in the client's `jwks`. `iss` and `sub` = client_id, `aud` = this token endpoint, `exp` at most 10 minutes away, a unique `jti`. client_credentials only."
|
|
77828
|
+
},
|
|
77829
|
+
{
|
|
77830
|
+
"schema": {
|
|
77831
|
+
"type": "string"
|
|
77832
|
+
},
|
|
77833
|
+
"in": "query",
|
|
77834
|
+
"name": "client_assertion_type",
|
|
77835
|
+
"required": false,
|
|
77836
|
+
"description": "With `client_assertion`: `urn:ietf:params:oauth:client-assertion-type:jwt-bearer`."
|
|
77837
|
+
},
|
|
77324
77838
|
{
|
|
77325
77839
|
"schema": {
|
|
77326
77840
|
"type": "string"
|