CA API Management - Mismatching redirect_uri error for OAuth Clients

Document ID : KB000008023
Last Modified Date : 10/08/2018
Show Technical Document Details
Issue:

When submitting an OAuth request you receive the below error:

 

error: invalid_redirect_uri

error_description: Mismatching redirect_uri. Given: 'https://ssg920.ca.com/callback'

Auth_server_error.png

 

*The URL in your message will be unique in your environment.

 

Cause:

As suggested in the message this is caused by a mismatch in the redirect uri / callback URL. 

While the redirect uri is optional as part of the request, if provided, only requests using a registered redirect_uri of this client will be granted by the OAuth server. The registered URL must match the request exactly.

 

Resolution:

To resolve the problem you will need to confirm the registered redirect uri matches what you are submitting in your request.

1. Login to OAuth manager

2. Locate the OAuth client you are using to submit the request and click 'List Keys'

1.png

3. Click the 'Edit' button on the client key

2.png

4. Locate the field for the 'Callback URL'. This must match what is submitted with your request. If needed you can also update the URL here as well.

3.png