Hi Usman,
The fact that /mga is missing from the request to the AAC backend is expected. /mga is the junction name. The context root for the application on AAC is /sps. So, a request to the runtime for /sps/... is good.
Of course, that doesn't explain why your request for the metadata is not working.
The URL you are converting to looks correct. The only thing I can't validate is that you have the correct definition name at the end of the URL. The URL format should be /mga/sps/oauth/oauth20/metadata/<definition name>.
I suspect that you have not updated the transformation rule from the default OIDCDefinition to your definition name.
This is the line in the rule you need to update:
<xsl:with-param name="by" select="'/mga/sps/oauth/oauth20/metadata/
OIDCDefinition'" />
Cheers... Jon.
------------------------------
Jon Harry
Consulting IT Security Specialist
IBM
------------------------------