Metrics with authMethod: jwt ? #3511
Replies: 1 comment
-
Hello, the problem is that the server currently supports passing the JWT through query parameters only, not through the Authentication header. This is the way to use the JWT to pull metrics:
The ability to use the Authorization Header is being tracked here: #3630 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
Server Version: 1.8.3
Instructions summary: Enable JWT auth, add mediamtx scope to JWT following auth0 docs, pass in JWT while trying to scrape metrics.
Server Logs: Below
Using Auth0, I wrote in the mediamtx_permissions.
If I fetch my token and decode it, it seems to have the correct scope, and works for the read/playback.
Server logs (Debug enabled) show the token coming across, and then the system says 401.
Here's my sections from mediamtx.yml
Prometheus job, to show that I am passing a bearer in my requests,
Did I do anything wrong? Turning Auth back to internal and I can curl it on my PC, or feed it into prometheus/grafana no problem as shown here, when I have lines, JWT auth is disabled. When I don't have lines, JWT auth is enabled.
Beta Was this translation helpful? Give feedback.
All reactions