I cannot login to swagger-stats if there more than one pod active #253
Unanswered
zhenisduissekov
asked this question in
Q&A
Replies: 1 comment
-
swagger stats isnt aware of any other parallel instances. It sounds to me like your requests are being load balanced when you are only logged into one pod. Look into setting up customAuth in your config. Looking at /lib/swsAuth.js (line 50) and /lib/swssettings.js (line 80), you can write a function that will take the request object and needs to return true if authenticated or false if not. Using this, you can make some kind of common token system so that your pods are aware of each others logins using redis, a db etc. As opposed to 'onAuthenticate', it looks like 'customAuth' will run against every request. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
having swagger-stats on two or more pods throws 403(Forbidden) error immediately after login. How can I fix it?
Beta Was this translation helpful? Give feedback.
All reactions