[ARCHIVED] what is <reg_key> in canvas to authorize api to retrieve token ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2019
07:29 AM
Hi @william_diehl ,
I was going through this question Names and Roles Provisioning user_id and am using (Names and Role - Canvas LMS REST API Documentation ) api to retrieve user_id value but while following flow mentioned in docs ### JWT Access Tokens for LTI2 Tools - Canvas LMS REST API Documentation . i encountered with reg_key which require in authorize api.
-F 'grant_type=authorization_code' \
curl https://<canvas>/api/lti/accounts/1/authorize \
-F'assertion=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMDAwMDAwMDAwMDAwMyIsImF1ZCI6Imh0dHA6Ly9jYW52YXMuZG9ja2VyL2FwaS9sdGkvYXV0aG9yaXplIiwiZXhwIjoxNDg5Njc0NTAyLCJpYXQiOjE0ODk2NzQ0NDIsImp0aSI6ImQ4MjA0NDBjLTI3YzMtNDg2YS1hZjM5LWQzZDQxOGI4ZDNkYSJ9.S3SxxsSKAKhT8ViHuCDBxp9fbzdYGKJEBftftJMX4-E' \-F 'code=<reg_key>'
because when tool being launched with lti 1.3 that time no such parameter reg_key am getting.
have you use name and roles provision api (Names and Role - Canvas LMS REST API Documentation) to
get user_id ? if yes can you mention the flow to get user_id in lti 1.3.
Thanks.
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.