Skip to content
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

[feature] Provide complete JWT body for proxied calls #513

Open
matpuk opened this issue Apr 14, 2022 · 0 comments
Open

[feature] Provide complete JWT body for proxied calls #513

matpuk opened this issue Apr 14, 2022 · 0 comments

Comments

@matpuk
Copy link

matpuk commented Apr 14, 2022

Centrifugo v3 has cool feature - possibility to attach private metadata to a connection from connection proxy. But in case of JWT, the proxy is not called. The only way to use 'meta' property is to put it inside JWT token, so Centrifugo will pass it to other proxies. And here go problems. For example, I have 'tenantID' property in my JWT token and want to know it in subscription proxy. For this I'm forced to duplicate this property in my JWT token:

{
  "sub": "1234567890",
  "name": "John Doe",
  "iat": 1516239022,
  "tenantID": "432",
  "meta": { "tenantID": "432" }
}

And for every additional JWT token data I want to have access in my proxies, I need to duplicate it inside 'meta'.

As a solution, please provide complete JWT token body for every proxy call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant