How to Assign Dynamic Values to Custom Parameters in D2L Basic LTI

牧云@^-^@ 提交于 2019-12-13 01:49:32

问题


Within "Manage External Learning Tools" D2L provides the ability to define custom LTI parameters. I created such a parameter, and I now want to assign a dynamic value to the customer parameter via JavaScript prior to posting the request to the 3rd party provider.

For example, the user_id LTI parameter is assigned the D2L-only user ID value which does not align with the campus-wide authentication. However, it is possible to get the campus-wide user ID via JavaScript, and I would like to assign this to a custom LTI parameter like custom_campus_user_id.

Thank you in advance.


回答1:


If you go to External Learning Tools at the org, and go into Settings (v10) or Configure Tool Consumer Information (v9.2 – v9.4.1), there are three checkboxes for allowing the D2L defined user fields to be passed in an LTI link as custom parameters. It appears it is system username that contains the value you are looking for.



来源:https://stackoverflow.com/questions/12009630/how-to-assign-dynamic-values-to-custom-parameters-in-d2l-basic-lti

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!