Hi all,
We have a new requirement where we need to have a different authorization url for a specific API definition. So we went ahead and modified the metadata.json file located in Template files -> C -> oauth20 -> metadata.json.
{"issuer":"@ISSUER_IDENTIFIER@",
"authorization_endpoint":"@AUTHORIZE_URL@",
"token_endpoint":"@TOKEN_URL@",
"userinfo_endpoint":"@USERINFO_URL@",
"jwks_uri":"@JWKS_URL@",
"response_types_supported":@RESPONSE_TYPES@,
"response_modes_supported":@RESPONSE_MODES@,
"grant_types_supported":@GRANT_TYPES@,
"id_token_signing_alg_values_supported":@SIGNING_ALG@,
"id_token_encryption_alg_values_supported":@ENCRYPTION_ALG@,
"id_token_encryption_enc_values_supported":@ENCRYPTION_ENC@,
"poc":"@POC_PREFIX@",
"name":"@OAUTH_DEFINITION@",
"introspect_endpoint":"@INTROSPECT_URL@",
"revocation_endpoint":"@REVOKE_URL@",
"registration_endpoint":"@REGISTER_URL@",
"device_authorize_endpoint":"@DEVICE_AUTHORIZE_URL@",
"user_authorize_endpoint":"@USER_AUTHORIZE_URL@"}
Now since its the master file we modified that the hard coded authorization endpoint (
"authorization_endpoint":
)
is being displayed for all API definitions. Is there a way we can customize this metadata.json per API definition please.
As an effort tried creating a new metadata file ( metadataQT.json) and copied at the same location and added the HTTP transformation on webseal for that file
( <xsl:with-param name="replace" select="'API-DEF/.well-known/openid-configuration'" />
<xsl:with-param name="by" select="'/oauth20/metadataQT'" />)
)
webseal config entry
([http-transformations:updateuri]
request-match = request:GET /API-DEF/.well-known/openid-configuration*)
If there is a way to do this in any other way possible, do let us know. Thanks for your time.
Thanks
Madhu K
------------------------------
Madhu Kolli
------------------------------