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

back to upstream / cherry-picks 2025-03-11 #7

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

stefanfoulis
Copy link
Owner

Instead of using a ResponseType model and a ManyToMany relationship to Client, use a custom field that saves the selected response_types in a JSONField. This simplifies the model structure and doesn't require keeping the db in-sync with code, since the response_types are a static set of choices anyway.

@stefanfoulis stefanfoulis force-pushed the back-to-upstream-2025/cherry-picked-on-upstream-v2025-03-11 branch 4 times, most recently from 8c18a18 to 74161a7 Compare March 11, 2025 15:34
Instead of using a ResponseType model and a ManyToMany relationship to Client, use a custom field that saves the selected response_types in a JSONField.
This simplifies the model structure and doesn't require keeping the db in-sync with code, since the response_types are a static set of choices anyway.
@stefanfoulis stefanfoulis force-pushed the back-to-upstream-2025/cherry-picked-on-upstream-v2025-03-11 branch from 0c9801c to b0543f5 Compare March 12, 2025 15:37
@stefanfoulis stefanfoulis changed the title Replace the ResponseType model with a field back to upstream / cherry-picks 2025-03-11 Mar 12, 2025
@stefanfoulis stefanfoulis force-pushed the back-to-upstream-2025/cherry-picked-on-upstream-v2025-03-11 branch from b0543f5 to cf0c7cf Compare March 12, 2025 16:44
creation of the Code, Token and UserConsent model instances are now configurable. A customized function could store additional information or do additional checks.
@stefanfoulis stefanfoulis mentioned this pull request Mar 12, 2025
@stefanfoulis stefanfoulis force-pushed the back-to-upstream-2025/cherry-picked-on-upstream-v2025-03-11 branch from fe7107e to 49ba4b5 Compare March 12, 2025 20:12
For Token.access_token and Token.refresh_token.
Added fields that contain a hashed version of the token that is indexed for quick lookup.
Works for dynamically altering `expires_at` in `create_token`, `create_code` and `update_or_create_user_consent`.
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.

1 participant