Ah, this looks great. Authentication was one of the missing pieces I'd
need to completely offload call-handling to Janus, rather than handling
it in my own server. Even this simple mechanism should work well for me.
Out of curiosity, when are these tokens needed? Does every Janus request
require one, or only certain actions?
Also, is this integrated into janus.js yet?
Finally, a somewhat unrelated question, I can start a new topic if it
spins off into something huge. Is there any way to globally monitor call
events? Say I wanted to know when calls begin/end (I.e. audio/video
sending and session terminated) in a single place so I can monitor
session duration. Is there any sort of global event bus? IIRC the web
socket API only lets me get events for sessions I initiate. The token
page brought me to the admin/monitoring API, which I'd hoped would offer
a global stream of this sort. If I can get a global event firehose then
I can push everything to Janus and simply create/revoke tokens when one
of my users is permitted to call another.
Thanks.