Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LtiAdvantage submodule, update LineItems view #8

Open
wants to merge 27 commits into
base: master
Choose a base branch
from

Conversation

steelheaddigital and others added 26 commits March 16, 2021 05:56
…t score for line item when lineitem url is present.
Fix error when platform doesn't return line items. Add a way to submi…
Retrieve and display any context members on load
Allow the resourcelinkid for a new line item to be specified
Allow for deletion of line items
…ange the token parameter name sent back to the Platform when assigning deeplinks to the standard "JWT" as defined in the spec at https://www.imsglobal.org/spec/security/v1p0/#form-parameter
Fix the redirect to the /Catalog page on a DeepLinkRequest launch. Ch…
Generate correct tool Url when assigning a deep link item
Display custom params from launch request
@tal32123
Copy link

Hey learningcom team, I am new to LTI and edtech was wondering if this is actually up to date and up to standards of the LTI 2.0/LTI advantage given that the readme of both this and your fork say its out of date.

var lineItemClient = _httpClientFactory.CreateClient();
lineItemClient.SetBearerToken(tokenResponse.AccessToken);
lineItemClient.DefaultRequestHeaders.Accept
.Add(new MediaTypeWithQualityHeaderValue(Constants.MediaTypes.LineItem));
Copy link

@johnmweisz johnmweisz Sep 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is requesting media type LineItem but expecting a ResultContainer response.

lineItemClient.DefaultRequestHeaders.Accept
.Add(new MediaTypeWithQualityHeaderValue(Constants.MediaTypes.LineItem));

var resultsUrl = $"{LtiRequest.AssignmentGradeServices.LineItemUrl}/{Constants.ServiceEndpoints.Ags.ResultsService}";
Copy link

@johnmweisz johnmweisz Sep 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this breaks if the platform includes query params in the uri

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants