Set exchange format for OAuth ID token

Set the oidc.oauth.request.format entry in the OpenIDConnect service configuration file to define JSON as the format used during OAuth ID token exchange.

This configuration applies only if the IdP uses OAuth2 and requires the authentication to be performed in JSON, then you must configure the format for the exchange to be in JSON by setting the oidc.oauth.request.format configuration entry.

If the IdP uses the OpenID Connect (OIDC) protocol instead of OAuth2, this configuration entry is not taken into account as url-encoded is always used. For information on how to detect the IdP protocol, go to Identify the protocol in use by IdP.

  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"