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

Web panel cannot fetch streams and VoD files after JWT filtering is set for both the server and the application. #5625

Closed
kputyra opened this issue Sep 27, 2023 · 0 comments · Fixed by #5740
Assignees

Comments

@kputyra
Copy link

kputyra commented Sep 27, 2023

Short description

The admin panel fails to fetch a list of live streams and VoD files when the REST API for both a server and an app requires a valid JSON web token. There are plenty of warning messages on a yellow background saying "You are not allowed to access this resource".

image

Environment

  • Operating system and version: Ubuntu 22.04
  • Ant Media Server version: 2.6.3

Steps to reproduce

  1. Enable JWT filtering for both a streaming app and the antmedia server.
  2. Perform the request
    curl -v -X 'Authentication: {jwt}' "https://{antmedia-server}:5443/rest/v2/request?_path=LiveApp/rest/v2/broadcasts/list/0/10&sort_by=&order_by="
    where {jwt} is encoded with the secret key for the application (confirmed by checking the failed request in the browser). The response is 403 with a message Invalid Server JWT Token.
  3. Perform the same request but with JWT encoded with the server secret key. The response is still 403, but with a message Invalid App JWT Token.
  4. Disable now the JWT filtering for the server, but keep JWT filtering for the streaming app. The first request is now successful. Likewise, the yellow notifications do not appear anymore and the list of streams is visible in the web admin panel.

Expected behavior

Enabling JWT filtering for both the server and streaming apps should have no effect on the web admin panel.

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

Successfully merging a pull request may close this issue.

2 participants