Skip to content

JWT Support [Release 10]#28

Open
ferishili wants to merge 2 commits into
opencast-ilias:release_10from
ferishili:jwt-10
Open

JWT Support [Release 10]#28
ferishili wants to merge 2 commits into
opencast-ilias:release_10from
ferishili:jwt-10

Conversation

@ferishili

Copy link
Copy Markdown
Contributor

JWT support for Release 10.
Refer to #27 for more info.

- Access Permission check.
- use streamVideo method from OpenCast plugin.
- Provide refresh token method
@ferishili ferishili requested a review from chfsx June 22, 2026 12:16
@ferishili ferishili self-assigned this Jun 22, 2026
@ferishili ferishili added the enhancement New feature or request label Jun 22, 2026
@ferishili ferishili requested a review from dagraf June 22, 2026 14:59
@dagraf dagraf moved this from Backlog to Testing in Opencast & Opencast PageComponent Jun 23, 2026
$message = $th->getMessage();
if (
$message &&
str_contains($message, '401') ||

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Here we must have ( ) around the two str_contains, otherwise it won't work as expected. And: Isn't there another possibility to check this? searching the message for 401 or 403 seems to be a bit fragile IMOPV.

exit;
$this->opencast_player_gui->streamVideo();
} catch (\Throwable $th) {
$message = $th->getMessage();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We will output the whole content of the exception, right? Can we have a more general message maybe?


$this->paellaConfigServiceFactory = $opencast_dic->legacy()->paella_config_service_factory();
$this->paellaConfigService = $this->paellaConfigServiceFactory->get();
$this->opencast_player_gui = new xoctPlayerGUI(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I know there is currently no other way than that, we must introduce a "Player" using the \srag\Plugins\Opencast\UI\Integration\Integration in the near future to decouple this. creating a new instance of xoctPlayerGUI couples the plugins more, but as I said, maybe theres no better solution for the moment.

@chfsx

chfsx commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

@ferishili I made some comments, at least the if () issue should be fixed before merging. same for #27
Thanks a lot!

@chfsx chfsx mentioned this pull request Jun 30, 2026
@chfsx chfsx moved this from Testing to In review in Opencast & Opencast PageComponent Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

3 participants