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
[question] Anonymous Access #591
Comments
Hello @Nearata - in general not a problem to add such an option. Possibly call it like Could you elaborate a bit more why you want this behaviour - do you already generate JWTs for anonymous users in your app and they use those JWTs to call backend API. But at the same time you want to avoid having Centrifugo connection? Just curious about exact reasoning here. |
Hello @FZambia , Lets' assume im building a plugin for a platform. This plugin allows to get realtime notification when new discussions are made. Now, the plugin has a toggle to allow/deny guests but it needs to check, in backend, if a visitor is a guest or not. my toughts were if this job can be left to centrifuge or if it is a overkill/not ideal in this use case. that means, im going to generate a jwt token no matter if the visitor is guest or not, so that i can get rid of this |
Working as expected. Thank you !! |
Ask your question. Please provide as many details as possible – you will get the answer much faster then!
Is there a way to disable
Anonymous Access
when authenticating to websocket?"Show us an example of what you mean!". An example can be useful, otherwise we're left guessing!
sub
claim is empty, not allowedI'd like a way to configure centrifuge to check this instead of doing it by myself with my backend, like
The text was updated successfully, but these errors were encountered: