Idira Identity: OpenID Connect (OIDC) application stop working after 22.5 release
Symptom
After 22.5 release, we are seeing some of our OpenID connect (OIDC) app stop working with the following error
{"error":"invalid_request","error_description":"invalid redirect"}
Environment
Identity App Access Service
Cause
Identity has made a change in 22.5 for oidc redirect URIs. This was made to follow this RFC (section 4.1.3), no wildcard uri will be accepted as redirect URIs, exact redirect URI matching has to be used due to security reasons:
https://datatracker.ietf.org/doc/html/draft-ietf-oauth-security-topics#section-4.1
Resolution
Use proper, specific redirect URI instead on wildcard uri underĀ Authorized Redirect URIs in admin portal.
The redirect uri has to be an exact match, you may need to include "/" at the end of the uri, depends on the incoming request redirect_uri.
e.g. incoming request redirect_uri is https://redirecturi/ > Add https://redirecturi/ to Authorized Redirect URIs, adding https://redirecturi will cause errorĀ
If you are unsure about the redirect_uri, you may check the request using network tracing tools.
e.g. in this example the redirect_uri is "https://openidconnect.net/callback"
This fix is for security reason. If you would like to revert back to the old behavior, please check with support in order to set backend config to turn it off for your tenant