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

Add column for token value hash in access token table #613

Merged
merged 5 commits into from
Jul 17, 2023

Conversation

rmiccoli
Copy link
Contributor

No description provided.

- drop UNIQUE constraint on the first 766 characters of the token_value
- add column to access_token table representing the token_value hash
- create UNIQUE index on that column
in order to search by the hash of the value
instead of the value
@rmiccoli
Copy link
Contributor Author

@enricovianello enricovianello merged commit 8423edc into develop Jul 17, 2023
@enricovianello enricovianello deleted the issue-579 branch July 27, 2023 08:59
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.

Token column in database is a limited index and can lead to a "Duplicate entry" error
2 participants