Layer 7 API Management - Mismatching redirect_uri error for OAuth Clients

book

Article ID: 8023

calendar_today

Updated On:

Products

STARTER PACK-7 CA Rapid App Security CA API Gateway

Issue/Introduction

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'

 

*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.

 

Environment

Release: 4.x, 3.x
Component: APIGTW OTK

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'

 

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

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.

 

 

Attachments

1558697596661000008023_sktwi1f5rjvs16j1r.png get_app
1558697593155000008023_sktwi1f5rjvs16j1p.png get_app