From: Robert Kaiser Date: Thu, 15 Dec 2016 22:26:45 +0000 (+0100) Subject: make user_id 255 characters max again, as it is in the oauth2-server-php cookbook X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=8f7b10823e51dd606db15c845d8d92044dbec58e;p=authserver.git make user_id 255 characters max again, as it is in the oauth2-server-php cookbook --- diff --git a/app/authutils.php-class b/app/authutils.php-class index 4690bf2..e76098c 100755 --- a/app/authutils.php-class +++ b/app/authutils.php-class @@ -634,7 +634,7 @@ class AuthUtils { $table = $schema->createTable('oauth_access_tokens'); $table->addColumn('access_token', 'string', array('length' => 40, 'notnull' => true)); $table->addColumn('client_id', 'string', array('length' => 80, 'notnull' => true)); - $table->addColumn('user_id', 'string', array('length' => 80, 'notnull' => false)); + $table->addColumn('user_id', 'string', array('length' => 255, 'notnull' => false)); $table->addColumn('expires', 'datetime', array('notnull' => true)); $table->addColumn('scope', 'string', array('length' => 2000, 'notnull' => false)); $table->setPrimaryKey(array('access_token'), 'access_token_pk'); @@ -642,7 +642,7 @@ class AuthUtils { $table = $schema->createTable('oauth_authorization_codes'); $table->addColumn('authorization_code', 'string', array('length' => 40, 'notnull' => true)); $table->addColumn('client_id', 'string', array('length' => 80, 'notnull' => true)); - $table->addColumn('user_id', 'string', array('length' => 80, 'notnull' => false)); + $table->addColumn('user_id', 'string', array('length' => 255, 'notnull' => false)); $table->addColumn('redirect_uri', 'string', array('length' => 2000, 'notnull' => false)); $table->addColumn('expires', 'datetime', array('notnull' => true)); $table->addColumn('scope', 'string', array('length' => 2000, 'notnull' => false)); @@ -651,7 +651,7 @@ class AuthUtils { $table = $schema->createTable('oauth_refresh_tokens'); $table->addColumn('refresh_token', 'string', array('length' => 40, 'notnull' => true)); $table->addColumn('client_id', 'string', array('length' => 80, 'notnull' => true)); - $table->addColumn('user_id', 'string', array('length' => 80, 'notnull' => false)); + $table->addColumn('user_id', 'string', array('length' => 255, 'notnull' => false)); $table->addColumn('expires', 'datetime', array('notnull' => true)); $table->addColumn('scope', 'string', array('length' => 2000, 'notnull' => false)); $table->setPrimaryKey(array('refresh_token'), 'refresh_token_pk');