-
Notifications
You must be signed in to change notification settings - Fork 30
idea: use with pyramid_authstack #53
Copy link
Copy link
Open
Description
We're using a slightly modified version of pyramid_jwt as part of a stack defined using https://github.com/wichert/pyramid_authstack and I'm trying to create a minimal pull request for the functionality.
My question is, would it be acceptable to have the functions set_jwt_cookie_authentication_policy and set_jwt_authentication_policy also return the created policies so that we can register them in pyramid_authstack?
From what I can see calling get_claims (via registered property jwt_claims) or create_token (via registered method create_jwt_token) on a request that did not match the jwt policy should not be a problem, so the only issue that my PR should address is how to obtain the policy so it can be added to the stack.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels