Skip to content

[question] Anonymous Access #591

Closed
Closed
@Nearata

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!

  1. Guest on website
  2. Frontend sends api request to backend to refresh token
  3. Backend generates a jwt token with empty sub and returns it to Frontend
  4. Centrifuge SDK loads the token and tries to connect to the Websocket Server with the provided jwt token from the backend
  5. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions