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

Use update_attribute to ensure callbacks are executed on revocation #1426

Merged

Conversation

jsdalton
Copy link
Contributor

Summary

Reverts revoke method implementations to use #update_attribute instead of #update_column. This ensures that models mixing this functionality in will have callbacks invoked whenever the token is revoked.

Some users relied on callback behavior during revocation to e.g. invalidate a cache entry when tokens are revoked. The earlier change to #update_column affected this behavior and broke some use cases.

Other Information

@jsdalton jsdalton force-pushed the fix/update-attribute-for-revocation branch from 6d849c7 to 37ef580 Compare June 19, 2020 13:52
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

Successfully merging this pull request may close these issues.

2 participants