The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December. Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
Hello all,
I am building LTI tool which will use user access token to access the course info. I finally got LTI launch and oauth2 access token working. Now I am confused why I need two pairs of ids and secrets:
1. LTI Consumer Key, LTI Shared Secret (this is for LTI launch and it is set when registering the tool)
2. Client ID, Client Token (this is to get access token through oauth2, this is set separately in Canvas developer keys section).
I thought that the idea of using oauth2 after LTI is successfully launched was that I don't need any developer keys set beforehand manually.
Or is there some common rule to set them the same
LTI Consumer Key = Client ID
LTI Shared Secret = Client Token ?
Thanks,
Zbynek
Solved! Go to Solution.
Zbynek, I think I follow you here, and I'd say the overall ideas are that:
So they handle very different parts of the overall process. Some LTI apps may not even need access back to Canvas, but it sounds like you do. So you'd set up and use a developer key, which in turn lets you get client tokens and access the Canvas REST API.
Zbynek, I think I follow you here, and I'd say the overall ideas are that:
So they handle very different parts of the overall process. Some LTI apps may not even need access back to Canvas, but it sounds like you do. So you'd set up and use a developer key, which in turn lets you get client tokens and access the Canvas REST API.
Hi Paul,
thanks for clearing that up. It just took me some time to find out what client id and client token is.
Z.
Yes, the LTI key and secret are so that your tool knows whether the LTI request is coming from a user properly authenticated into an authorized Canvas instance. The Canvas client ID and token are so that the Canvas instance knows that the your API request is coming from a properly authorized app.
Hi @z_dusatko
Can you guide me through the second step that you have done (i.e. 2. Client ID, Client Token (this is to get access token through oauth2, this is set separately in Canvas developer keys section)).
Can you tell me how your OAuth2 access token ended up back in your LTI app.?
Thanks in advance.
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in