Closed
Description
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!
- Guest on website
- Frontend sends api request to backend to refresh token
- Backend generates a jwt token with empty sub and returns it to Frontend
- Centrifuge SDK loads the token and tries to connect to the Websocket Server with the provided jwt token from the backend
- Centrifuge server denies the connection because the
sub
claim is empty, not allowed
I'd like a way to configure centrifuge to check this instead of doing it by myself with my backend, like
{
"anonymous_access": false,
"namespaces": [...]
}
Metadata
Assignees
Labels
No labels