Skip to content

generate_token() provide two different tokens #26

Description

@bimhud

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions