Implementing OAuth to My Application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024
07:03 AM
I tried to connect a basic Spring Boot app by using Developer Keys (LTI key), I managed to get the client ID and key needed for this.Then, I used the client ID to integrate our application into Canvas.
To generate a user Access token using Oauth2 flow. GET https://<canvas-install-url>/login/oauth2/auth?client_id=XXX&response_type=code&state=YYY&redirect_uri=https://example.com/oauth2response
client_id :- The above generated client_id
state :- A random state
redirect_uri :- I am redirecting to one of the endpoints in my application to obtain the OAuth code.
I am able to redirect to the endpoint successfully, but here I am encountering an issue with receiving an "invalid_scope" error. Find the screenshot for the same.