elan-ev / studip-opencast-plugin

This is an Stud.IP plugin for Opencast
https://elan-ev.github.io/studip-opencast-plugin/
GNU General Public License v2.0
9 stars 20 forks source link

Explain why the plugin needs user references #721

Closed lkiesow closed 1 year ago

lkiesow commented 1 year ago

The documentation tells users to set Opencast to create user references for LTI users. I struggle to see why this should be necessary given that the documentation also tells users to activate the Stud.IP user provider in Opencast which should supply these users?

https://github.com/elan-ev/studip-opencast-plugin/blob/701056cddaede8ce3dd327f68beaaf258564d5cb/INSTALL.md?plain=1#L25

tgloeggl commented 1 year ago

With the Stud.IP-UserProvider, this should not be necessary anymore.

tgloeggl commented 1 year ago

Users cannot ingest videos if this option is not set.

lkiesow commented 1 year ago

Why? What's the problem?

tgloeggl commented 1 year ago
2023-06-16T08:09:18,759 | WARN  | (IngestRestService:1251) - Unable to ingest mediapackage
java.lang.SecurityException: Current user 'lti:test-5.3:e99badebf23c226f33014246f3cdda4f' can not be loaded
lkiesow commented 1 year ago

The error message means that Opencast cannot load any user with that identifier. The same would go for access evaluation. In other words: The Stud.IP user provider does not provide the user. But since that is required for the Plugin to work, you have a problem to fix, I guess.

That is likely also why you said that things only work when LTI users get ROLE_ADMIN which would make them global system administrators and allow them to bypass most of the access control checks in Opencast. Something you therefor really shouldn't do.