Set exchange format for OAuth

The oidc.oauth.request.format configuration entry defines the protocol format to use during OAuth ID token exchange.

By default, the OpenID Connect service performs the exchange of tokens in url-encoded format. If the IdP requires the OAuth authentication to be performed in JSON, you must configure the protocol format for the exchange to be in JSON format.

The protocol format is defined by the oidc.oauth.request.format configuration entry.

The oidc.oauth.request.format configuration entry applies only when using the OpenIDConnect service provider to perform OAuth authentication. The entry is not taken into account when using OpenIdConnect authentication.

  1. Open the configuration file $FGLDIR/web_utilities/services/openid-connect/res/configuration.
  2. Locate the entry oidc.oauth.request.format.
  3. Modify as needed.
    Allowed values include:
    • oidc.oauth.request.format = "url-encoded" (default)
    • oidc.oauth.request.format = "json"