# OpenID Connect Configuration

The `openid-connect` plugin integrates with OIDC providers like Keycloak and Auth0, simplifying user authentication in API management.<!-- --> <!-- -->Configuration covers plugin parameters.

## Parameters[​](#parameters "Direct link to Parameters")

See plugin [common configurations](https://docs.api7.ai/apisix/reference/plugin-common-configurations.md) for configuration options available to all plugins.

This plugin supports gateway references in string-valued configuration fields. Use the `$env://` prefix for environment variables or the `$secret://` prefix for values from a secret manager, such as HashiCorp Vault’s [KV secrets engine](https://developer.hashicorp.com/vault/docs/secrets/kv). The gateway resolves these references at runtime. ADC `${NAME}` interpolation is different because ADC resolves it while loading the configuration file, before synchronization. For more information, see [environment variables in plugin](https://docs.api7.ai/apisix/reference/environment-variables.md#plugins) and [secrets](https://docs.api7.ai/apisix/key-concepts/secrets.md).

* client\_id

  string

  required

  ***

  Client ID.

* client\_secret

  string

  ***

  Client secret. The value is encrypted with AES before being stored in etcd.

  In API7 Enterprise from version 3.9.14 and APISIX from version 3.17.0, the client secret is optional for local JWT verification modes that do not contact the OpenID provider, such as `bearer_only` combined with `public_key` or `use_jwks`. It is also optional when client authentication uses `private_key_jwt`, or when the authorization code flow uses PKCE. It remains required for flows that authenticate to the provider with a client secret, such as token introspection or the authorization code flow without PKCE.

* discovery

  string

  required

  ***

  URL to the well-known discovery document of the OpenID provider, which contains a list of [OP API endpoints](https://samples.auth0.com/.well-known/openid-configuration). The plugin can directly utilize the endpoints from the discovery document. You can also configure these endpoints individually, which takes precedence over the endpoints supplied in the discovery document.

* scope

  string

  default: `openid`

  ***

  OIDC scope that corresponds to information that should be returned about the authenticated user, also known as [claims](https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims). This is used to authorize users with proper permission. The default value is `openid`, the required scope for OIDC to return a `sub` claim that uniquely identifies the authenticated user.

  Additional scopes can be appended and delimited by spaces, such as `openid email profile`.

* required\_scopes

  array\[string]

  ***

  Scopes required for authorization. If any required scope is missing, the plugin rejects the request with `403 Forbidden`.

  With bearer introspection, the scopes are read from the introspection response. In the authorization code flow, scopes are read from the access token and then the ID token, and the session is rejected if its granted scopes cannot be determined. Authorization code sessions are supported in APISIX from version 3.18.0 and API7 Enterprise from versions 3.9.19 and 3.10.6.

* realm

  string

  default: `apisix`

  ***

  Realm in the[`WWW-Authenticate`](https://www.rfc-editor.org/rfc/rfc6750#section-3) response header returned with a `401 Unauthorized` response due to authentication failure. For example:

  * If `realm` is set to `apisix-oidc`, the 401 response will include the following header:

    ```
    WWW-Authenticate: Bearer realm="apisix-oidc"
    ```

  * If `realm` is not configured, the 401 response will include the following header:

    ```
    WWW-Authenticate: Bearer realm="apisix"
    ```

* claim\_validator

  object

  ***

  JWT claim validation configurations.

  * issuer

    object

    ***

    Claim issuer validation configurations.

    * valid\_issuers

      array\[string]

      ***

      Trusted issuers for local JWT verification. If omitted, APISIX uses the issuer from the discovery document and rejects the token when no trusted issuer can be established. API7 Enterprise 3.9.18 and 3.10.7 skip issuer validation during a discovery failure unless this list is configured explicitly; 3.9.21 and 3.10.8 reject the request.

      In API7 Enterprise 3.9.21 and 3.10.8, and in APISIX 3.19.0, an explicit list also applies to remote introspection. The response must contain a string `iss` that matches the list, or authentication returns HTTP 401. An empty list rejects every issuer; omitting the field disables this check for introspection.

      API7 Enterprise 3.10.7 does not apply this list to remote introspection responses.

  * audience

    object

    ***

    Audience claim validation configurations.

    * claim

      string

      default: `aud`

      ***

      Name of the claim that contains the audience.

    * required

      boolean

      default: `false`

      ***

      If true, audience claim is required and the name of the claim will be the name defined in `claim`.

      For instance, suppose `claim_validator` is configured to be the following:

      ```json
      {
        "audience": {
          "claim": "custom_claim",
          "required": true
        }
      }
      ```

      If the claim `custom_claim` is not present in the request, you will receive a `required audience claim not present` error.

    * match\_with\_client\_id

      boolean

      default: `false`

      ***

      If true, require the audience to match the client ID. If the audience is a string, it must exactly match the client ID. If the audience is an array of strings, at least one value must match. A token that omits the audience claim is also rejected. Missing-audience enforcement is available in APISIX from version 3.18.0 and API7 Enterprise from versions 3.9.19 and 3.10.6.

      This requirement is stated in the [OpenID Connect specification](https://openid.net/specs/openid-connect-core-1_0-final.html) to ensure that the token is intended for the specific client.

* claim\_schema

  object

  ***

  JSON Schema used to validate the claims returned in the OIDC response. For instance, the schema `{"type":"object","properties":{"access_token":{"type":"string"}},"required":["access_token"]}` ensures that the response includes a required string field named `access_token`.

  Available in APISIX from 3.14.0 and API7 Enterprise from 3.9.2

* bearer\_only

  boolean

  default: `false`

  ***

  If true, strictly require bearer access token in requests for authentication.

* logout\_path

  string

  default: `/logout`

  ***

  Path to activate the logout.

* post\_logout\_redirect\_uri

  string

  ***

  URL to redirect users to after the `logout_path` receive a request to log out.

* redirect\_uri

  string

  default: `` `${ngx.var.request_uri}/.apisix/redirect` ``

  ***

  URI to redirect to after authentication with the OpenID provider.

  Configure a fully qualified URI with a scheme and host. The path should match the route without being identical to the protected request path. For example, if the route `uri` is `/api/v1/*`, set `redirect_uri` to `https://gateway.example.com/api/v1/redirect`.

  If `redirect_uri` is not configured or is a root-relative path beginning with `/`, the gateway constructs the URI from the request scheme and host. It preserves an explicit request port and uses forwarded origin headers only when the immediate proxy is included in `apisix.trusted_addresses`.

  A fully qualified URI avoids relying on a request-derived origin. Configure the same URI as an allowed redirect URI in the OpenID provider.

* timeout

  integer

  default: `3`

  valid value:

  greater than 0

  ***

  Request timeout in seconds.

* ssl\_verify

  boolean

  default: `true`

  ***

  If true, verify the OpenID provider's SSL certificates.

  The default value changed from `false` to `true` in APISIX 3.16.0 and API7 Enterprise 3.9.8. This is a breaking change.

* introspection\_endpoint

  string

  ***

  URL of the [token introspection](https://datatracker.ietf.org/doc/html/rfc7662) endpoint for the OpenID provider used to introspect access tokens. If this is unset, the introspection endpoint presented in the well-known discovery document is used as a fallback.

* introspection\_endpoint\_auth\_method

  string

  default: `client_secret_basic`

  ***

  Authentication method for the token introspection endpoint. The value should be one of the authentication methods specified in the `introspection_endpoint_auth_methods_supported` [authorization server metadata](https://www.rfc-editor.org/rfc/rfc8414.html) as seen in the well-known discovery document, such as `client_secret_basic`, `client_secret_post`, `private_key_jwt`, and `client_secret_jwt`.

  With the default `client_secret_basic`, client credentials are sent only in the `Authorization` header. Set this field to `client_secret_post` if the identity provider expects them in the introspection request body.

* token\_endpoint\_auth\_method

  string

  default: `client_secret_basic`

  ***

  Authentication method for the token endpoint. The value should be one of the authentication methods specified in the `token_endpoint_auth_methods_supported` [authorization server metadata](https://www.rfc-editor.org/rfc/rfc8414.html) as seen in the well-known discovery document, such as `client_secret_basic`, `client_secret_post`, `private_key_jwt`, and `client_secret_jwt`.

  If the configured method is not supported by the plugin, it is ignored and the plugin uses the first usable method advertised by the OpenID provider. If the configured method is supported by the plugin, and `token_endpoint_auth_methods_supported` is present but does not include it, token endpoint authentication fails.

* client\_rsa\_private\_key

  string

  ***

  Private key used to sign a client assertion JWT. Required when `private_key_jwt` is selected for the token, introspection, or PAR endpoint. The key type must match `client_jwt_assertion_alg`: RSA for `RS*`, or an EC key on the appropriate curve for `ES*`.

  The value is encrypted with AES before being stored in etcd.

* client\_rsa\_private\_key\_id

  string

  ***

  Optional key ID used in the signed client assertion JWT when `private_key_jwt` is selected for an endpoint.

* client\_jwt\_assertion\_expires\_in

  integer

  default: `60`

  ***

  Lifetime in seconds of a client assertion JWT used with `private_key_jwt` or `client_secret_jwt` on the token, introspection, or PAR endpoint.

* public\_key

  string

  ***

  Public key used to verify JWT signature id asymmetric algorithm is used. Providing this value to perform token verification will skip token introspection in client credentials flow.

  You can pass the public key in `-----BEGIN PUBLIC KEY-----\n……\n-----END PUBLIC KEY-----` format.

* token\_signing\_alg\_values\_expected

  string

  ***

  Algorithm used for signing JWT, such as `RS256`.

* set\_access\_token\_header

  boolean

  default: `true`

  ***

  If true, set the access token used by the authenticated request in a request header. By default, the `X-Access-Token` header is used. The gateway clears any client-supplied value before setting the token.

* access\_token\_in\_authorization\_header

  boolean

  default: `false`

  ***

  If true and if `set_access_token_header` is also true, set the access token in the `Authorization` header.

* accept\_none\_alg

  boolean

  default: `false`

  ***

  Set to true if the OpenID provider does not sign its ID token, such as when the signature algorithm is set to `none`.

* use\_jwks

  boolean

  default: `false`

  ***

  If true and if `public_key` is not set, use the JWKS to verify JWT signature and skip token introspection in client credentials flow. The JWKS endpoint is parsed from the discovery document.

* jwk\_expires\_in

  integer

  default: `86400`

  ***

  Expiration time for JWK cache in seconds.

* jwt\_verification\_cache\_ignore

  boolean

  default: `false`

  ***

  If true, force re-verification for a bearer token and ignore any existing cached verification results.

* cache\_segment

  string

  ***

  Optional name of a cache segment, used to separate and differentiate caches used by token introspection or JWT verification.

* use\_pkce

  boolean

  default: `false`

  ***

  If true, use the Proof Key for Code Exchange (PKCE) for Authorization Code Flow as defined in [RFC 7636](https://datatracker.ietf.org/doc/html/rfc7636).

* set\_id\_token\_header

  boolean

  default: `true`

  ***

  If true and if a validated ID token is available, set base64-encoded decoded claims in the `X-ID-Token` request header. This value is not the signed JWT and cannot be verified against the provider's JWKS. The gateway clears any client-supplied value first.

* set\_userinfo\_header

  boolean

  default: `true`

  ***

  If true and if user info data is available, set the value in the `X-Userinfo` request header. The gateway clears any client-supplied value first.

* set\_raw\_id\_token\_header

  boolean

  default: `false`

  ***

  If true and a raw ID token is available, add the original signed JWT issued by the identity provider to the `X-Raw-ID-Token` request header. The token is persisted in the session so an upstream service can verify it against the provider's JWKS. Available in API7 Enterprise 3.9.17 and 3.10.4, and in APISIX 3.18.0.

  The raw ID token is a bearer credential. Enable this only for upstreams you trust, and keep the header out of access logs and out of any response returned to the client.

* set\_refresh\_token\_header

  boolean

  default: `false`

  ***

  If true and if a refresh token obtained from the identity provider is available, set the value in the `X-Refresh-Token` request header. The gateway clears any client-supplied value first.

* upstream\_headers

  array\[object]

  ***

  Claims to forward to the upstream as request headers. Each entry maps one claim to one header. Must contain at least one entry.

  Available in APISIX 3.20.0 and API7 Enterprise from version 3.10.10.

  The gateway clears every declared header first, then sets it only from a verified claim. A client cannot supply its own value, including on requests let through by `unauth_action` set to `pass`.

  With `bearer_only`, `public_key`, `use_jwks`, or introspection, claims come from the verified access token payload or the introspection response. In the authorization code flow, claims come from the ID token, then from the user info for claims the ID token does not contain. A claim set to `null` or `false` counts as not contained, so the next source is used.

  * header

    string

    required

    ***

    Name of the upstream request header.

    Must contain only letters, digits, and the characters ``!#$%&'*+-.^_`|~``.

  * path

    array\[string]

    required

    ***

    Keys leading to the claim, one key per nesting level. For example, `["org", "id"]` reads `id` inside the `org` claim.

    Must contain at least one key, and each key must be a non-empty string.

    A key is matched literally, so a claim name containing `://`, `/`, or `.` is a single key.

    Strings are forwarded as is. Numbers and `true` are forwarded as text. Arrays and objects are forwarded as base64-encoded JSON. An empty array or object is forwarded as `e30=`, which is the base64 encoding of `{}`. If the claim is missing, `null`, `false`, or an empty string, the header is not set.

* session

  object

  ***

  Session configuration used when `bearer_only` is `false` and the plugin uses Authorization Code flow.

  * secret

    string

    valid value:

    16 or more characters

    ***

    Key used for session encryption and HMAC operation when `bearer_only` is `false`.

    When `bearer_only` is `false`, this field is required. This requirement was introduced in API7 Enterprise 3.9.2 and APISIX 3.14.0.

    API7 Gateway encrypts the value with AES at rest. APISIX encrypts it before etcd storage when `apisix.data_encryption.enable_encrypt_fields` is enabled.

  * cookie\_name

    string

    ***

    Name of the session cookie. Maps to the lua-resty-session `cookie_name` option.

    Available in API7 Enterprise from version 3.9.14 and APISIX from version 3.17.0.

  * cookie\_path

    string

    ***

    Path scope of the session cookie. Maps to the lua-resty-session `cookie_path` option.

    Available in API7 Enterprise from version 3.9.14 and APISIX from version 3.17.0.

  * cookie\_domain

    string

    ***

    Domain scope of the session cookie. Maps to the lua-resty-session `cookie_domain` option.

    Available in API7 Enterprise from version 3.9.14 and APISIX from version 3.17.0.

  * cookie\_secure

    boolean

    ***

    If true, set the `Secure` attribute on the session cookie. Maps to the lua-resty-session `cookie_secure` option.

    Available in API7 Enterprise from version 3.9.14 and APISIX from version 3.17.0.

  * cookie\_http\_only

    boolean

    ***

    If true, set the `HttpOnly` attribute on the session cookie. Maps to the lua-resty-session `cookie_http_only` option.

    Available in API7 Enterprise from version 3.9.14 and APISIX from version 3.17.0.

  * cookie\_same\_site

    string

    valid value:

    `Strict`, `Lax`, `None`, or `Default`

    ***

    SameSite attribute of the session cookie. Maps to the lua-resty-session `cookie_same_site` option.

    Available in API7 Enterprise from version 3.9.14 and APISIX from version 3.17.0.

  * idling\_timeout

    integer

    default: `900`

    ***

    Maximum inactivity period in seconds. After this period, the session is invalid and the next protected request starts a new authorization flow. Maps to the lua-resty-session `idling_timeout` option.

    Available in API7 Enterprise from version 3.9.14 and APISIX from version 3.17.0.

  * rolling\_timeout

    integer

    default: `3600`

    ***

    Maximum period in seconds before the session must be renewed. Maps to the lua-resty-session `rolling_timeout` option.

    Available in API7 Enterprise from version 3.9.14 and APISIX from version 3.17.0.

  * absolute\_timeout

    integer

    default: `86400`

    ***

    Absolute session lifetime in seconds, after which the session expires regardless of activity. Maps to the lua-resty-session `absolute_timeout` option.

    Available in API7 Enterprise from version 3.9.14 and APISIX from version 3.17.0.

  * cookie

    object

    ***

    Cookie configurations. Deprecated and kept for backward compatibility with the lua-resty-session 3.x schema. Use the flat `session.*` options such as `cookie_name` and `absolute_timeout` instead.

    * lifetime

      integer

      ***

      Cookie lifetime in seconds. Deprecated. When configured, the value is mapped to `absolute_timeout` at runtime if `absolute_timeout` is not set. When omitted, the `absolute_timeout` default applies.

  * storage

    string

    default: `cookie`

    valid value:

    `cookie` or `redis`

    ***

    Session storage backend. When set to `redis`, sessions are stored in Redis instead of cookies.

    Available in API7 Enterprise from version 3.9.15 and APISIX from version 3.16.0.

  * redis

    object

    ***

    Redis connection configurations. Required when `storage` is `redis`.

    Available in API7 Enterprise from version 3.9.15 and APISIX from version 3.16.0.

    * host

      string

      default: `127.0.0.1`

      ***

      Redis host.

    * port

      integer

      default: `6379`

      valid value:

      greater than or equal to 1

      ***

      Redis port.

    * username

      string

      ***

      Redis username.

    * password

      string

      ***

      Redis password. The value is encrypted with AES before being stored in etcd.

    * database

      integer

      default: `0`

      valid value:

      greater than or equal to 0

      ***

      Redis database index.

    * prefix

      string

      default: `sessions`

      ***

      Prefix for Redis session keys.

    * ssl

      boolean

      default: `false`

      ***

      If true, use SSL for the Redis connection.

    * ssl\_verify

      boolean

      default: `true`

      ***

      If true, verify the Redis server SSL certificate.

    * server\_name

      string

      ***

      Server name for TLS SNI when connecting to Redis.

    * connect\_timeout

      integer

      default: `1000`

      valid value:

      greater than or equal to 1

      ***

      Redis connection timeout in milliseconds.

    * send\_timeout

      integer

      default: `1000`

      valid value:

      greater than or equal to 1

      ***

      Redis send timeout in milliseconds.

    * read\_timeout

      integer

      default: `1000`

      valid value:

      greater than or equal to 1

      ***

      Redis read timeout in milliseconds.

    * keepalive\_timeout

      integer

      default: `10000`

      valid value:

      greater than or equal to 1000

      ***

      Redis keepalive timeout in milliseconds.

* unauth\_action

  string

  default: `auth`

  valid value:

  `auth`, `deny`, or `pass`

  ***

  Action for unauthenticated requests.

  When set to `auth`, redirect to the authentication endpoint of the OpenID provider.

  When set to `pass`, allow the request without authentication.

  When set to `deny`, return 401 unauthenticated responses rather than start the authorization code grant flow.

* proxy\_opts

  object

  ***

  Configurations for the proxy server that the OpenID provider is behind.

  * http\_proxy

    string

    ***

    Proxy server address for HTTP requests, such as `http://<proxy_host>:<proxy_port>`.

  * https\_proxy

    string

    ***

    Proxy server address for HTTPS requests, such as `http://<proxy_host>:<proxy_port>`.

  * http\_proxy\_authorization

    string

    ***

    Default `Proxy-Authorization` header value to be used with `http_proxy`. Can be overridden with custom `Proxy-Authorization` request header.

  * https\_proxy\_authorization

    string

    ***

    Default `Proxy-Authorization` header value to be used with `https_proxy`. Cannot be overridden with custom `Proxy-Authorization` request header since with HTTPS, the authorization is completed when connecting.

  * no\_proxy

    string

    ***

    Comma separated list of hosts that should not be proxied.

* authorization\_params

  object

  ***

  Additional parameters to send in the request to the authorization endpoint.

* renew\_access\_token\_on\_expiry

  boolean

  default: `true`

  ***

  If true, attempt to silently renew the access token when it expires or if a refresh token is available. If the token fails to renew, redirect user for re-authentication.

* access\_token\_expires\_in

  integer

  default: `3600`

  ***

  Lifetime of the access token in seconds if no `expires_in` attribute is present in the token endpoint response.

* refresh\_session\_interval

  integer

  ***

  Time interval to refresh the user ID token without re-authentication. When not set, the plugin does not periodically refresh the ID token.

* iat\_slack

  integer

  default: `120`

  ***

  Tolerance of clock skew in seconds with the `iat` claim in an ID token.

* introspection\_expiry\_claim

  string

  default: `exp`

  ***

  Name of the expiry claim, which controls the TTL of the cached and introspected access token.

* introspection\_interval

  integer

  ***

  TTL of the cached and introspected access token in seconds.

  The default value is 0, which means this option is not used and the plugin defaults to use the TTL passed by expiry claim defined in `introspection_expiry_claim`.

  If `introspection_interval` is larger than 0 and less than the TTL passed by expiry claim defined in `introspection_expiry_claim`, use `introspection_interval`.

* introspection\_addon\_headers

  array\[string]

  ***

  Used to append additional header values to the introspection HTTP request. If the specified header does not exist in the original request, header value will not be appended.

* accept\_unsupported\_alg

  boolean

  default: `true`

  ***

  If an ID token uses an expected signing algorithm that the gateway does not support, setting this to true continues without verifying the signature. Setting it to false rejects the token.

  Set this to false in security-sensitive deployments unless you explicitly accept the risk of an unverified ID token signature. Setting it to false does not add support for additional signing algorithms.

  In APISIX 3.18.0 and API7 Gateway 3.9.18 and 3.10.5, the ID-token verification path supports `RS256`, `RS512`, `HS256`, and `HS512`. It does not verify `PS*`, `ES*`, or `EdDSA` signatures.

* access\_token\_expires\_leeway

  integer

  ***

  Expiration leeway in seconds for access token renewal. When set to a value greater than 0, token renewal will take place the set amount of time before token expiration. This avoids errors in case the access token just expires when arriving to the resource server.

* force\_reauthorize

  boolean

  default: `false`

  ***

  If true, execute the authorization flow even when a token has been cached.

* use\_nonce

  boolean

  default: `false`

  ***

  If true, enable nonce parameter in authorization request.

* revoke\_tokens\_on\_logout

  boolean

  default: `false`

  ***

  If true, notify the authorization server a previously obtained refresh or access token is no longer needed at the revocation endpoint.

* session\_contents

  object

  ***

  Content that should be stored in the session, used to minimize the size of the session data. When not set, everything is included in the session.

  * id\_token

    boolean

    ***

    If true, store the ID token in session.

  * access\_token

    boolean

    ***

    If true, store the access token and refresh token in session.

  * enc\_id\_token

    boolean

    ***

    If true, store the encrypted ID token in session.

  * user

    boolean

    ***

    If true, store the user info in session.

* par

  object

  ***

  Pushed Authorization Request (PAR) configuration, as defined in [RFC 9126](https://datatracker.ietf.org/doc/html/rfc9126). With PAR, the gateway sends the authorization request parameters to the identity provider over a back channel and redirects the user agent with only the returned `request_uri`, so the parameters never travel through the browser.

  Configure PAR through this nested object. Flat options `use_par`, `pushed_authorization_request_endpoint`, and `pushed_authorization_request_endpoint_auth_method` are rejected so the plugin validates the endpoint and authentication method.

  Available in API7 Enterprise 3.9.18 and 3.10.5, and in APISIX 3.18.0.

  * enabled

    boolean

    default: `false`

    ***

    If true, push the authorization request to the PAR endpoint instead of sending its parameters in the redirect to the authorization endpoint.

  * endpoint

    string

    ***

    URL of the identity provider's PAR endpoint. When unset, the endpoint advertised by the provider's discovery document is used.

  * endpoint\_auth\_method

    string

    valid value:

    `client_secret_basic`, `client_secret_post`, `client_secret_jwt`, or `private_key_jwt`

    ***

    Client authentication method used on the PAR endpoint. When unset, the method configured for the token endpoint is used. `private_key_jwt` requires `client_rsa_private_key`, and `client_secret_jwt` requires `client_secret`. The PAR request fails if the selected method cannot be used.

* dpop

  object

  ***

  Demonstrating Proof-of-Possession (DPoP) configuration, as defined in [RFC 9449](https://datatracker.ietf.org/doc/html/rfc9449). The gateway signs a proof JWT for each token request, binding issued access tokens to the configured key. A stolen token cannot be replayed at a DPoP-protected resource endpoint without that key. When `par.enabled` is also set, the key thumbprint is sent as `dpop_jkt` on the pushed request.

  The gateway acts as the DPoP client for token and user-info calls to the identity provider. This configuration does not validate DPoP proofs on incoming requests from external API clients.

  The gateway rejects a token response whose `token_type` is not `DPoP`. It retries the token request once after a `400` or `401` response with a `DPoP-Nonce` header, and the user-info request once after a `401` response with that header.

  Configure DPoP through this nested object. Flat options `use_dpop`, `dpop_signing_alg`, `dpop_private_key`, and `dpop_public_jwk` are rejected so the plugin's DPoP validation and encrypted-field handling apply.

  Available in API7 Enterprise 3.9.18 and 3.10.5, and in APISIX 3.18.0.

  * enabled

    boolean

    default: `false`

    ***

    If true, send a DPoP proof JWT with token requests. When enabled, `private_key` and `public_jwk` are both required.

  * private\_key

    string

    ***

    PEM-encoded private key used to sign the DPoP proof JWT. When Data Plane data encryption is enabled, this field is encrypted at rest.

  * public\_jwk

    object

    ***

    Public JWK matching `private_key`, embedded in the proof JWT header. It must not contain private key parameters.

  * signing\_alg

    string

    default: `ES256`

    valid value:

    `ES256`, `RS256`, or `PS256`

    ***

    Algorithm used to sign the DPoP proof JWT. It must match the type of the configured key and, when the discovery document lists supported DPoP algorithms, must be accepted by the identity provider.

* client\_jwt\_assertion\_alg

  string

  valid value:

  `HS256`, `HS512`, `RS256`, `RS512`, `ES256`, or `ES512`

  ***

  Algorithm used to sign the client assertion JWT when the endpoint authentication method is `client_secret_jwt` or `private_key_jwt`.

  Use an `HS*` algorithm with `client_secret_jwt` and an `RS*` or `ES*` algorithm with `private_key_jwt`. The algorithm must match `client_rsa_private_key` and, when the discovery document lists supported client assertion algorithms, must be accepted by the identity provider. One configured algorithm is used for all endpoints.

  Available in API7 Enterprise 3.9.18 and 3.10.5, and in APISIX 3.18.0.

* client\_jwt\_assertion\_audience

  string

  ***

  Audience claim of the client assertion JWT. When unset, the URL of the endpoint being called is used. Configure this when the gateway reaches an internal endpoint URL but the identity provider expects its external URL as the audience.

  Available in API7 Enterprise 3.9.18 and 3.10.5, and in APISIX 3.18.0.
