
Announcements
I am creating a custom connector using the Power Platform UI. The Custom Connector uses Generic OAuth2.0. When creating a custom connector in this way your Redirect URL is autogenerated. Mine is in the following format:
https://global.consent.azure-apim.net/redirect/{MY CUSTOM CONNECTOR NAME}-{GUID}
I am unsure where the GUID comes from but would assume it is the GUID of my Custom Connector? Anyway, the authorization is successful and after retrieving the access token the redirect URL is followed however I get the following message in the pop up window:
“The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.”
The URL in the popup window picture above is as follows:
https://global.consent.azure-apim.net/redirect/{MY CUSTOM CONNECTOR NAME}-{GUID}?code={Access Token from OAuth2.0 server} &state={GUID}_australia-001_azure-apim.net
I do not have any APIM instances in Azure, any idea what is going on here?
Our HTTP Request to the 'https://global.consent.azure-apim.net' endpoint includes a query parameter called 'code'. This stores the authorization code provided by the 3rd party application's authorization server once we provide the Client ID and Client Secret. The Azure consent server has a character limit of 5000 characters on this query parameter, my authorization code is 7500 characters and so the consent server cannot process my request properly.
Microsoft's product group have made it clear they do not see justification for increasing the character limit and instead require me to reduce the size of the authorization code provided by the authorization server.