简体   繁体   English

在 LMS 上使用 oAuth 在 LRS 上启动 xApi (TinCan) 包

[英]Launch xApi (TinCan) package at LMS with oAuth on LRS

What url parameters needs to launch xApi (TinCan api) package with oAuth authorization on LRS?在 LRS 上使用oAuth授权启动xApi (TinCan api)包需要哪些 url 参数?

I found only examples with basic auth:我只找到了具有基本身份验证的示例:

?endpoint=https://lrs.example.com/xAPI/
&auth=Basic%20efnkn4kn3jk3nfkwefoew
&actor={"name": "username", "mbox": "mailto:email@example.com", "objectType": "Agent"}
&registration=ffbe80cc-1732-11ea-8d71-362b9e155666
&activity_id=http://www.example.com/LA1/001/intro

And params with oAuth authorization, but for CMI5:和 oAuth 授权的参数,但对于 CMI5:

?endpoint=https://lrs.example.gov/xAPI/
&fetch=http://test/token&actor={"objectType": "Agent","account": 
{"homePage": "http://www.example.com","name": "1625378"}
&registration=760e3480-ba55-4991-94b0-01820dbd23a4
&activityId=http://www.example.com/LA1/001/intro

There are no additional URL parameters when doing OAuth launch based on the Tin Can launch guidelines.根据 Tin Can 启动指南执行 OAuth 启动时没有额外的 URL 参数。 The LRS endpoint should be all that is needed, the rest of the authentication process uses resources provided by the LRS. LRS 端点应该是所有需要的,身份验证过程的其余部分使用 LRS 提供的资源。 See the various OAuth workflows in the xAPI specification itself.请参阅 xAPI 规范本身中的各种 OAuth 工作流程。 See https://stackoverflow.com/a/24212579/1464957 for more.有关更多信息,请参阅https://stackoverflow.com/a/24212579/1464957

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM