Thanks Brad for the quick response! I've been looking at the user's API and found some strange disconnects between LTI and the Canvas API. For example, both the LTI course and user IDs do not match up with the Canvas IDs:
For the same course, I have two different IDs:
LTI: context_id : 1a8fa4ecdcee851a3a21e818ed5f310758811456
Canvas API course ID: 875827
The closest thing I could find to get the Canvas course ID from the LTI parameters is from the LTI parameter:
lis_result_sourcedid : 61945-875827-3469213-4041918-f23d4f739210d8e9a2010de9310df3ca0651cf05
The 2nd number seems to be the same course ID that Canvas's API expects.
The other disconnect I have with LTI and Canvas's API is the user information:
For the same user, I have two different IDs:
LTI: user_id : 7e3f53c4c518078fa9c50f23ec66a47aee19a1b2
Canvas API:
{
"id": 4041918,
"name": "Bryan Holladay",
"sortable_name": "Holladay, Bryan",
"short_name": "Bryan Holladay",
"login_id": "
holl...@longsight.com"
}
I can use the same login_id but that would cause issues if the user would load the LTI tool since it's expecting the LTI user_id.
Am I missing something? Is there a way to use the LTI ID's for both course and user Canvas APIs?
Thanks,
Bryan