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

tokens are never actually revoked #7

Open
elliotpeele opened this issue Feb 14, 2013 · 1 comment
Open

tokens are never actually revoked #7

elliotpeele opened this issue Feb 14, 2013 · 1 comment

Comments

@elliotpeele
Copy link
Owner

Due to the way exception handling works in pyramid, the db transaction is rolled back on an exception. When the authorization policy checks to see if a token is expired, the revoked flag never gets set because an exception is then raised.

@elliotpeele
Copy link
Owner Author

To be clear, the token is invalidated, it just never gets marked as revoked in the database.

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

No branches or pull requests

1 participant