LTI / OAuth2 / REST and assignments

119 views
Skip to first unread message

Chris Lorch

unread,
Aug 7, 2018, 3:55:52 PM8/7/18
to saka...@apereo.org, Jamie Gilgen, coll...@crowdmark.com

Hi all,

I've been talking with Crowdmark on their integration with Sakai. Their current integrations with Canvas and Blackboard can utilize OAuth and REST along with LTI to import users. They also make use of LTI as assignments, which I know folks worked on to integrate with Turnitin. This is the most recent JIRA I could find on that issue: SAK-32679.

To sum up, there are a couple of lingering questions:

  • What's the status of Assignments support for LTI?
  • Where can we learn more about OAuth2 / REST integration with Sakai?

Thanks!
- Chris


---

Chris Lorch
Learning Innovation
Duke University
Schedule a Meeting

Earle Nietzel

unread,
Aug 8, 2018, 9:35:41 AM8/8/18
to Chris Lorch, Charles Severance, saka...@apereo.org, Jamie Gilgen, coll...@crowdmark.com
Hi Chris,

LTI support in Assignments is a project that Dr Chuck is spear heading I'll let him comment on that.

As for OAuth2, Sakai uses spring security for external authentication which has supports many protocols, see https://projects.spring.io/spring-security-oauth/docs/oauth2.html

As for authentication to REST endpoints Sakai currently uses a Cookie approach for the endpoints managed by the entity broker and CXF REST endpoints have a more traditional access as they are mostly used for administration where a session id is required.

There is also an Oauth tool to allow users to create tokens and connect with external services.
https://github.com/sakaiproject/sakai/tree/master/oauth

In the future we will likely be adding support for JWT tokens across all of sakai specifically as many of the newer UI's in sakai are javascript based. The entitybroker will likely switch to using JWT tokens as well.

Best,
Earle

--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+...@apereo.org.
To post to this group, send email to saka...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/sakai-dev/.

Earle Nietzel

unread,
Aug 8, 2018, 10:36:50 AM8/8/18
to Jamie Gilgen, Charles Severance, Chris Lorch, saka...@apereo.org, coll...@crowdmark.com
LTI does support those functions you mention:
  • access to enrollment lists
  • post grades back

The README there has a number of links to relevant info.

If LTI for some reason doesn't meet your needs I think we would like to know about it as that would be the preferred method of integration as a web service integration would then be considered custom. For completeness you can see web service endpoints here:


On Wed, Aug 8, 2018 at 10:12 AM Jamie Gilgen <ja...@crowdmark.com> wrote:
Hello Earle,

Thank you for the information! Our situation at Crowdmark is that as a third party application focused on assessments, we would like to be able to pull course enrolment lists, and push grades back into Sakai. We have two integration routes - LTI or via a direct API integration.

Since assessments aren’t supported over LTI in Sakai, I have been looking into a REST API based integration. Can you point me to the documentation for this? I’m having a hard time finding anything concrete that details the endpoints offered by Sakai for integrations.

Jamie

Jamie Gilgen: Crowdmark 
ja...@crowdmark.com

Earle Nietzel

unread,
Aug 8, 2018, 10:43:49 AM8/8/18
to Jamie Gilgen, coll...@crowdmark.com, Charles Severance, Chris Lorch, saka...@apereo.org
Sounds like you want to use LTI Content Item? As I understand that support is coming to assignments (Dr Chuck to confirm).
Luckily you don't have to wait as it is currently supported in lessons so you might be able to use it there knowing that it will work in assignments in the future.

On Wed, Aug 8, 2018 at 10:40 AM Jamie Gilgen <ja...@crowdmark.com> wrote:
Hi Earle,

Thank you, we have looked at using LTI for this but the issue that we ran into is that since Crowdmark is an assessment tool, we need to give instructors the ability to create multiple Crowdmark assessments within Sakai. Apparently this is not something that is supported by Sakai - having an LTI tool configured, and then creating many instances of that pre-configured tool.

Jamie Gilgen: Crowdmark 
ja...@crowdmark.com


Earle Nietzel

unread,
Aug 8, 2018, 11:03:27 AM8/8/18
to Jamie Gilgen, coll...@crowdmark.com, Charles Severance, Chris Lorch, saka...@apereo.org
Yes, and as part of the instructor configuring the LTI Content Item they allow the integration the ability to update certain information as different instances will require this.

On Wed, Aug 8, 2018 at 10:57 AM Jamie Gilgen <ja...@crowdmark.com> wrote:
So to confirm - a Sakai administrator could create an LTI tool and make it available to instructors as a pre-configured tool. Then, instructors could create a “lesson” which is an instance of the preconfigured LTI tool. The instructor launches Crowdmark via an LTI POST and then we can use the information in the payload to the list of enrollments in the course/section the lesson belongs to. When the assessment is marked, we could push the grades back into Sakai for each enrollment into the gradebook which has a column for that lesson?

Jamie


Jamie Gilgen: Crowdmark 
ja...@crowdmark.com


Chris James Lorch

unread,
Jan 30, 2019, 12:19:20 PM1/30/19
to Sakai Development, ja...@crowdmark.com, coll...@crowdmark.com, cs...@umich.edu, chris...@duke.edu
Reviving this old thread:

We're running into an issue with site.json and membership.json : Crowdmark wants users to be able to import all sites - and all users from those sites.

I understand that site.json?_limit=0 is supposed to return all values, but Crowdmark (and ultimately, faculty) aren't seeing all of their sites or users. Also, the desc parameter doesn't seem to be working.

Any ideas on what might be happening here?

Adam Marshall

unread,
Jan 30, 2019, 12:33:25 PM1/30/19
to Sakai Development, Chris James Lorch, ja...@crowdmark.com, coll...@crowdmark.com, cs...@umich.edu, chris...@duke.edu
Is it maybe only returning sites in the public index? If so it could be a permissions thing?

Adam

sent from my mobile


From: saka...@apereo.org <saka...@apereo.org> on behalf of Chris James Lorch <lorch...@gmail.com>
Sent: Wednesday, January 30, 2019 5:19:20 PM
To: Sakai Development
Cc: ja...@crowdmark.com; coll...@crowdmark.com; cs...@umich.edu; chris...@duke.edu
Subject: Re: [sakai-dev] LTI / OAuth2 / REST and assignments
 

Chris Lorch

unread,
Jan 31, 2019, 10:57:26 AM1/31/19
to Adam Marshall, Sakai Development, Chris James Lorch, ja...@crowdmark.com, coll...@crowdmark.com, cs...@umich.edu

Hey Adam, the issue was that the default value was 50 sites. Changing _limit=0 to _limit=500 resolved the issue.


---

Chris Lorch
Learning Innovation
Duke University
Schedule A Meeting

From: Adam Marshall <adam.m...@it.ox.ac.uk>
Sent: Wednesday, January 30, 2019 12:33:19 PM
To: Sakai Development; Chris James Lorch
Cc: ja...@crowdmark.com; coll...@crowdmark.com; cs...@umich.edu; Chris Lorch

Chris Lorch

unread,
Jan 31, 2019, 2:01:19 PM1/31/19
to Jamie Gilgen, Chris James Lorch, Adam Marshall, Sakai Development, coll...@crowdmark.com, cs...@umich.edu
One more question on the topic of the Sakai API: is there a POST endpoint for gradebook entry creation and a PUT endpoint which that supports grade updates?

From: Jamie Gilgen <ja...@crowdmark.com>
Sent: Thursday, January 31, 2019 11:03 AM
To: Chris Lorch; Chris James Lorch; Adam Marshall; Sakai Development
Cc: coll...@crowdmark.com; cs...@umich.edu

Subject: Re: [sakai-dev] LTI / OAuth2 / REST and assignments
 
Probably want to update the documentation to describe how the endpoints work :) I had to read source code to figure things out.

Jamie

Jamie Gilgen: Crowdmark 
ja...@crowdmark.com


Adam Marshall

unread,
Jan 31, 2019, 3:16:10 PM1/31/19
to Chris Lorch, Chris James Lorch, Sakai Development, Jamie Gilgen, coll...@crowdmark.com, cs...@umich.edu
I've been using limit = 1000 I think. No performance hit.

sent from my mobile


From: Jamie Gilgen <ja...@crowdmark.com>
Sent: Thursday, January 31, 2019 4:03:59 PM

To: Chris Lorch; Chris James Lorch; Adam Marshall; Sakai Development
Cc: coll...@crowdmark.com; cs...@umich.edu
Subject: Re: [sakai-dev] LTI / OAuth2 / REST and assignments
Probably want to update the documentation to describe how the endpoints work :) I had to read source code to figure things out.

Jamie

Jamie Gilgen: Crowdmark 
ja...@crowdmark.com


On January 31, 2019 at 10:57:21 AM, Chris Lorch (chris...@duke.edu) wrote:

Reply all
Reply to author
Forward
0 new messages