ltilibrary / ltiadvantagetool Goto Github PK
View Code? Open in Web Editor NEWSample LTI Advantage Tool.
Home Page: https://advantagetool.azurewebsites.net
License: MIT License
Sample LTI Advantage Tool.
Home Page: https://advantagetool.azurewebsites.net
License: MIT License
when I clicked add deep links, the pop up shows the error "id_token is missing or empty". may I know how to make it run?
Adding a lineitem to a gradebook results in unathorized (?handler=CreateLineItem)
The JWT Header response is empty and the JWT Payload works.
In toool.csthml.cs, IsSuccessStatusCode return false.
using (var response = await httpClient.PostAsync( LtiRequest.AssignmentGradeServices.LineItemsUrl, new StringContent(JsonConvert.SerializeObject(lineItem), Encoding.UTF8, Constants.MediaTypes.LineItem))) { if (!response.IsSuccessStatusCode) { Error = response.ReasonPhrase; return Page(); } }
Any advice ? Thanks
We are working on the Score Service to return grades from our Tool to Canvas and have run into an issue when sending the token request for the client_credentials where we are getting a status 500 internal server error response from Canvas.
We have followed the steps using the OAuth2 Endpoints - Canvas LMS REST API Documentation.
We are generating a token request via a POST /login/oauth2/token with a grant_type of client_credentials and a properly formed JWT signed with our private key. The Scope is https://purl.imsglobal.org/spec/lti-ags/scope/score
Here is a sample Score json.
{
"activityProgress": "Completed",
"gradingProgress": "FullyGraded",
"scoreGiven": 32.0,
"scoreMaximum": 100.0,
"timestamp": "/Date(1572302484610)/",
"userId": "bf14f352-16f3-498d-8f65-780b80b8c581"
}
We are able to successfully get the tokens from Blackboard and Moodle with this same workflow.
Does anyone have any suggestions on troubleshooting this?
According to IMS LTI 1.3 Specification claim "https://purl.imsglobal.org/spec/lti/claim/tool_platform" is not a mandatory claim.
However the Tool crashes and throws an error on not passing the same.
According to the spec and the reference implementation, the parameter on the DeepLinkingResponse (https://github.com/andyfmiller/LtiAdvantageTool/blob/master/src/Pages/Catalog.cshtml.cs#L150 ) is "JWT", not "id_token". And at least as far as the reference implementation is concerned, casing does matter here.
This repo has two missing project references i.e
<ProjectReference Include="..\..\..\LTI\LtiAdvantage\src\LtiAdvantage.IdentityModel\LtiAdvantage.IdentityModel.csproj" />
<ProjectReference Include="..\..\..\LTI\LtiAdvantage\src\LtiAdvantage\LtiAdvantage.csproj" />
Please add missing projects and references so that we can move further for a sample idea of LTI Advantage Library.
"lineitem": "https://sandbox.moodledemo.net/mod/lti/services.php/2/lineitems/2/lineitem?type_id=1"
this is from moodle, it adds query param to the uri causing service calls to fail...
When the tool appends "/results" to the LineItemUri it would become "https://sandbox.moodledemo.net/mod/lti/services.php/2/lineitems/2/lineitem?type_id=1/results" which is invalid instead of "https://sandbox.moodledemo.net/mod/lti/services.php/2/lineitems/2/lineitem/results?type_id=1"
just fyi, wasted a bit of time on this...
I get the message above when I try to register the LtiAdvantagePlatform (so iss=https://advantagetool.azurewebsites.net) and when I try to register the IMS Test tool (iss=https://lti-ri.imsglobal.org), but I don't have any Platforms registered with either of these names
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.