-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Error 1406: Data too long for column 'subject' at row 1 #829
Comments
How long is your subject id? |
427 characters |
Well, that's too long unfortunately, max is 255 characters. Keep in mind that this column will be indexed in the future, so
|
so my question is why |
Yeah, that will be fixed with 1.0.0 as we need that field indexed in order to remove all access tokens of a user, for example. |
oh, it.s ok. but where should i store my JWT? 👑 |
Don't store a JWT as the subject field. The subject field should be a user id in clear text (or hashed to anonymize). If you need extra data use the Closing because question answered. |
thx |
looks like new oauth2 have some troubles with subject field.
for example
for following oauth2 tables hydra_oauth2_access/hydra_oauth2_code/hydra_oauth2_oidc/hydra_oauth2_refresh/ of subject field.
At the same time, the hydra_consent_request table has a dimensionless field.
The text was updated successfully, but these errors were encountered: