centrifugal / centrifugo

Scalable real-time messaging server in a language-agnostic way. Self-hosted alternative to Pubnub, Pusher, Ably. Set up once and forever.
https://centrifugal.dev
Apache License 2.0
8.45k stars 598 forks source link

How to add multyple aud for a token in config file #791

Closed josippavicic closed 8 months ago

josippavicic commented 8 months ago

the documentations says that the aud is a string: { "token_audience": "centrifugo" } is there a delimiter for multiple auds, if so what is it, if not why not? How to manage multiple auds?

FZambia commented 8 months ago

Hello @josippavicic

Token may contain multiple audiences. Centrifugo checks that configured token_audience is among audiences in token. Is it not enough for your use case?