-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Custom unique identifier generator #1365
Comments
I suggest that the creation of unique identifiers should be handled within the repositories. For example: The new getNewToken() function should be responsible for setting the identifier. Additionally, it might be beneficial to check for an existing identifier to prevent overwriting in case the repository has already generated a unique identifier. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, the unique identifier generator is a function available here that cannot be easily modified:
oauth2-server/src/Grant/AbstractGrant.php
Line 569 in eb91b41
Would it be possible to customize the generation of the unique identifier?
In my case, I'd like to use the UUID, for example, to make sure that the identifier is unique.
In someone else's case, he'd like to use the auto-incremented ID.
What do you think of this improvement to make unique ID generation more easily modifiable?
An idea could be :
Or another idea :
The text was updated successfully, but these errors were encountered: