First step in OAuth2 process results in error

Jump to solution
kreut
Community Explorer

Hi,

I'm trying to integrate OAuth2 to generate access tokens and can't seem to get past the first step.  Through Berkeley's Canvas support, I've received the following email:

I've created a production developer key with the requested endpoints (Assignments, Assignment Groups, External Tools) and learnbybyte.com as the redirect URI.
 
The detail for the key is 10720000000000482

Based on the API docs, I think that the first step should be to visit:

https://ucberkeley.instructure.com/login/oauth2/auth?client_id=10720000000000482&redirect_uri=https:...

which will then in theory have the user log in and post back to https://learnbybyte.com.

Instead, I'm getting the message:

{"error":"invalid_request","error_description":"redirect_uri does not match client settings"}

Any ideas on how to troubleshoot this would be appreciated.

1 Solution
kreut
Community Explorer

For those of you might encounter the same issue, it was resolved when the admin for the Canvas instance added the Legacy Redirect URI.  Hopefully, this can help someone else!

The following link described this issue:

"redirect_uri does not match client settings" error when Redirect URIs field is used instead of Redi... 

View solution in original post