LTI Roles

299 views
Skip to first unread message

Ravishel Naicker

unread,
Jul 9, 2019, 9:13:03 PM7/9/19
to Opencast Users
Hi

We are using Opencast with Moodle . We use LTI connection to link the two. 

Currently we give anonymous read access to all the series. That is basically anyone with the link are able to view the videos. 

We would like to make the videos available to only students registered in the particular course. 

For configuration on Opencast side have followed the following 

On Moodle site we have done configuration two places
1- System wide on external tools of Moodle with the necessary field filled in.
2- Individual course page have set the custom parameters as "series=XXYYY" whereby the XXYYY is the series name.

My understanding is that LTI roles need to be set. Just need few clarification on what exactly needs to be done.
1- On the Custom parameters do we just add the Roles=Learner, or something like CourseCode_Learner?

2- On the opencast on Series Access Policies i do not see SiteID_Learner or CourseCode_Learner. How do i create them ? Will i need to create role for every Series specific roles ?
Regards

Christian G

unread,
Jul 10, 2019, 2:56:05 AM7/10/19
to Opencast Users
Hi Ravishel,

you need to uncomment or modfie
#org.opencastproject.security.custom.roles.pattern=
in the custom.properties. Then reboot opencast.
After this you can add a acl to your series/event.
In our case i need to put for example 1024_instructor in the search field.

The number is the courseid in moodle.

Best
Christian

Ravishel Naicker

unread,
Jul 10, 2019, 5:30:03 PM7/10/19
to Opencast Users
Hi

I have done that. When i do search it does not appear, do i need to create the access policy somewhere first ?

As well on the LTI connection, for custom parameter do we provide roles as which one of the following below
1- Series=1234, Role=Learner
2- Series-1234, Role=1234_Learner  

Dietmar Zenker

unread,
Jul 11, 2019, 3:16:09 AM7/11/19
to Opencast Users
Hi Ravishel,

just one fundamental question: why do want you use LTI for the Moodle-Opencast integration? There are specific Moodle plugins available which can be used in combination with the Opencast Moodle provider.

Greets,
Dietmar

Ravishel Naicker

unread,
Jul 13, 2019, 7:01:03 PM7/13/19
to Opencast Users
Hi

we were using LTI connection and did not want to make any changes to our system mid way. We will start using the plugin from next year.


regards

Christian G

unread,
Jul 14, 2019, 6:39:43 AM7/14/19
to Opencast Users
Hi,

waht kind of roles do you see when you try to use the LTI-tools out of your LMS.

You can see them like this:
Link an LTI Tool in your LMS open the tool.
And then type in that Bowser-Window https://youropencastinstance/info/me.json

Best
Christian

Ravishel Naicker

unread,
Jul 15, 2019, 2:01:03 AM7/15/19
to Opencast Users
Below the output 
{"org":{"anonymousRole":"ROLE_ANONYMOUS","name":"Opencast Project","adminRole":"ROLE_ADMIN","id":"mh_default_org","properties":{"admin.shortcut.general.series_view":"s","admin.shortcut.editor.split_at_current_time":"v","org.opencastproject.admin.ui.url":"https:\/\/vlectures.usp.ac.fj","player.shortcut.controls.nextChapter":"pageup","player.matomo.server":"https:\/\/analytics.usp.ac.fj","engageui.annotations.enable":"true","admin.shortcut.general.select_previous_dashboard_filter":"F","player.shortcut.controls.jumpToBegin":"backspace","admin.shortcut.player.mute":"m","admin.shortcut.editor.play_ending_of_current_segment":"n","player.mastervideotype":"presenter\/delivery","player.shortcut.layout.focusPrev":"<","org.opencastproject.admin.help.documentation.url":"http:\/\/docs.opencast.org","player.shortcut.controls.prevChapter":"pagedown","org.opencastproject.file.repo.url":"https:\/\/vlectures.usp.ac.fj","player.positioncontrols":"bottom","player.shortcut.zoom.moveLeft":"a","admin.shortcut.general.event_view":"e","admin.shortcut.editor.clear_list":"ctrl+backspace","adminui.user.external_role_display":"false","admin.shortcut.general.help":"?","logo_mediamodule":"\/engage\/ui\/img\/logo\/opencast-icon.svg","org.opencastproject.admin.help.restdocs.url":"\/rest_docs.html","player.matomo.notification":"true","admin.shortcut.general.new_series":"N","engageui.link_mobile_redirect.description":"For more information have a look at the official site.","player.matomo.site_id":"2","player.shortcut.zoom.moveRight":"d","player.hide_video_context_menu":"false","player.shortcut.layout.movePiP":"p","player.shortcut.playbackrate.decrease":"T","admin.shortcut.general.select_next_dashboard_filter":"f","player.shortcut.zoom.in":"+","admin.shortcut.player.next_segment":"down","admin.shortcut.general.new_event":"n","player.shortcut.controls.playPause":"space","admin.shortcut.player.next_frame":"right","player.shortcut.fullscreen.cancel":"escape","player.focusedflavor":"presentation","org.opencastproject.admin.mediamodule.url":"https:\/\/vrepo.usp.ac.fj\/engage\/ui","player.allowedtags":"engage-download,engage-streaming","player.shortcut.zoom.moveUp":"w","player.shortcut.zoom.out":"-","player.shortcut.layout.focusNext":">","player.shortcut-sequence":"controls,volume,playbackrate,layout,zoom,fullscreen","player.shortcut.controls.seekLeft":"left","player.shortcut.playbackrate.increase":"t","admin.shortcut.editor.play_current_segment_with_pre-roll":"C","org.opencastproject.engage.ui.url":"https:\/\/vrepo.usp.ac.fj","player.shortcut.volume.up":"9","adminui.chunksize":"2048","admin.shortcut.editor.cut_selected_segment":"backspace","admin.shortcut.player.step_backward":"ctrl+left","player.shortcut.controls.seekRight":"right","admin.shortcut.editor.play_current_segment":"c","logo_player":"\/engage\/theodul\/ui\/img\/opencast.svg","admin.shortcut.general.remove_filters":"r","player":"\/engage\/theodul\/ui\/core.html","player.matomo.heartbeat":"30","player.shortcut.volume.down":"8","admin.shortcut.general.main_menu":"m","engageui.link_download.enable":"false","engageui.links_media_module.enable":"true","engageui.link_mobile_redirect.enable":"false","login.display_defaults":"true","show_embed_links":"true","admin.shortcut.player.volume_up":"+","player.layout":"off","player.shortcut.fullscreen.enable":"mod+enter","admin.shortcut.player.previous_frame":"left","link_mediamodule":"true","admin.shortcut.player.play_pause":"space","player.shortcut.volume.muteToggle":"m","admin.shortcut.player.volume_down":"-","admin.shortcut.player.previous_segment":"up","engageui.link_mobile_redirect.url":"http:\/\/opencast.org\/","org.opencastproject.oaipmh.server.hosturl":"https:\/\/vrepo.usp.ac.fj","player.shortcut.layout.togglePiP":"o","admin.shortcut.player.step_forward":"ctrl+right","player.shortcut.zoom.moveDown":"s"}},"roles":["ROLE_ADMIN_UI","ROLE_API","ROLE_ADMIN","ROLE_ANONYMOUS","ROLE_USER_NAICKER_R","ROLE_USER"],"userRole":"ROLE_USER_NAICKER_R","user":{"provider":"opencast","name":"Ravishel Naicker","email":"","username":""}}

Christian G

unread,
Jul 15, 2019, 3:30:59 AM7/15/19
to us...@opencast.org
Hi,
it seems like the lti ist not working correct. This login info comes form your Admin-ui account, not from LTI.
Try this when you are not loggged in the Opencast Admin UI.
When you only get ROLE_ANONYMOUS, there must be somethin wrong in your LTI configuration.

Christian


--
To unsubscribe from this topic, visit https://groups.google.com/a/opencast.org/d/topic/users/1QJbPKSpdCo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to users+un...@opencast.org.

Dietmar Zenker

unread,
Jul 15, 2019, 3:36:05 AM7/15/19
to Opencast Users
Hi Ravishel,

there seems to be something wrong with your LTI connection/configuration: according to the output, you obviously wasn't authenticated as a LTI user (and by the way: you should not allow authentification as admin ("ROLE_ADMIN") via LTI).
First of all, you should access the LTI activity in the Moodle course as course admin or learner, and not when you are logged in opencast with your admin account at the same time.

As an example, if I access a LTI object as a learner in our LMS (we are using ILIAS) to get access to a specific opencast series, I get the following output from /info/me.json.

LTI - info_me.json.png


In custom.properties, the custom role patterns are defined as follows:
org.opencastproject.security.custom.roles=LTI_ROLE_ILIAS_GLOBAL
org.opencastproject.security.custom.roles.pattern=^LTI_ROLE_ILIAS_[0-9]+_(LEARNER|INSTRUCTOR)$

Greets,
Dietmar

Ravishel Naicker

unread,
Jul 15, 2019, 3:42:10 AM7/15/19
to Opencast Users
Hi

Okay in customs.properties i have set that.

Does the role appear on opencast after we pass the roles from LTI connection or ??

LTI connecton is quite simple for us (attached). In customs properties we just pass the series id only.

system wide.png

Course.png

Dietmar Zenker

unread,
Jul 15, 2019, 3:54:56 AM7/15/19
to Opencast Users
Hi,

I'm a bit confused about your series ID: this should be a 36 digit ID, e.g. "626bc96a-6cf3-4eae-96d8-dca4a15e1f5b".
Where did you get this ID from??

Greets,
Dietmar

Ravishel Naicker

unread,
Jul 15, 2019, 4:06:02 AM7/15/19
to Opencast Users
Hi

Yes our series ID is like you mentioned. 

I had meant it as series name which we use to link the Correct Moodle course page to respective series on Opencast

Dietmar Zenker

unread,
Jul 15, 2019, 4:20:23 AM7/15/19
to Opencast Users
Hi,

sorry, I don't understand: in custom parameters, the series ID must be declared, otherwise this will not work.


Ravishel Naicker

unread,
Jul 15, 2019, 5:25:51 PM7/15/19
to Opencast Users
In the custom paramters of Moodle we use series=MA111_201903

In Opencast we have a series name called MA111_201903 which does have its series ID you had mentioned.

when the student click on the Lecture recording LTI link on Moodle , it does take them to correct series on Opencast

Dietmar Zenker

unread,
Jul 16, 2019, 2:54:22 AM7/16/19
to Opencast Users


when the student click on the Lecture recording LTI link on Moodle , it does take them to correct series on Opencast


That means it's working now??
If so, I would be surprised that referencing via the series name works...

 
Reply all
Reply to author
Forward
0 new messages