You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't say that I'm fully satisfied with mentioned schema. My complaints are:
oauth_users.password column limited to 80 characters which can be not enough for future password encryption algorithms. In PHP docs password_hash recommended length is 255.
Schema doesn't set column collations. It's important for case-sensitive tokens(base64 e.g.). More info in submitted issue
It's not obvious that oauth_users.username is user_id mentioned in other tables. Maybe column comment can make it more clear.
If there are database architects in our community, they can significantly improve this schema.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
While thinking about OAuth2 library for PHP Slim generator in #3549 I've found OAuth database schema in source code. Here and here.
Describe the solution you'd like
It would be great to add these tables to MySQL schema generator. Database schema copied from oauth2-server-php-mysql repo described below.
Tables
oauth_access_tokens
oauth_authorization_codes
oauth_clients
oauth_jti
oauth_jwt
oauth_public_keys
oauth_refresh_tokens
oauth_scopes
oauth_users
Describe alternatives you've considered
I can't say that I'm fully satisfied with mentioned schema. My complaints are:
oauth_users
.password
column limited to 80 characters which can be not enough for future password encryption algorithms. In PHP docspassword_hash
recommended length is 255.oauth_users
.username
isuser_id
mentioned in other tables. Maybe column comment can make it more clear.If there are database architects in our community, they can significantly improve this schema.
The text was updated successfully, but these errors were encountered: