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

How to get req.session.jwt in websocket? #1240

Open
zhtiyissr opened this issue Jun 12, 2020 · 3 comments
Open

How to get req.session.jwt in websocket? #1240

zhtiyissr opened this issue Jun 12, 2020 · 3 comments
Labels

Comments

@zhtiyissr
Copy link

After entering name & email from the index.pug page, the front end will connect to the websocket, and then the websocket will go to the session to fetch the value of jwt for authentication. But the session is set by the server, and this is the first time the front end connects to the websocket address, so I would like to ask when the value of the session is set? We are in the distributed deployment of stf, but when the front end connects to the websocket, it prompts "Missing authorization token". I urge you to help me!

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.75. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@arckalsun
Copy link

arckalsun commented Jun 16, 2020

Error:Missing authorization token
20200616103551126

@zhtiyissr
Copy link
Author

@arckalsun thank you for your reply. I hope to implement distributed deployment of stf. I placed the websocket module separately on a server, but this will prompt "Missing authorization token". So I want to know, why can't I get the session when deploying websocket alone?

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

No branches or pull requests

2 participants