I have multiple apps running behind DispatcherMiddleware, each app will have it's all instance of flask_htpassword. All apps sharing the same password file.
when accessing any endpoints for a particular app, authentication using token sometimes denied, sometimes allowed. I looked into the issue and found that generate_token() provide different token string when it called and there are two distinct tokens consistently generated. When using one of the tokens for authentication, it sometimes failed because the system accept the other token.
Not sure what the issue is?
I have multiple apps running behind DispatcherMiddleware, each app will have it's all instance of flask_htpassword. All apps sharing the same password file.
when accessing any endpoints for a particular app, authentication using token sometimes denied, sometimes allowed. I looked into the issue and found that generate_token() provide different token string when it called and there are two distinct tokens consistently generated. When using one of the tokens for authentication, it sometimes failed because the system accept the other token.
Not sure what the issue is?