-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JWT migration added and grant type bug fixed.
- Loading branch information
1 parent
31c2b05
commit 79acc8b
Showing
7 changed files
with
581 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace ci4oauth2\Database\Migrations; | ||
|
||
use CodeIgniter\Database\Migration; | ||
|
||
class OauthJwt extends Migration | ||
{ | ||
public function up() | ||
{ | ||
$this->forge->addField([ | ||
'client_id' =>[ | ||
'type'=>'VARCHAR', | ||
'constraint'=>80 | ||
], | ||
'subject' =>[ | ||
'type'=>'VARCHAR', | ||
'constraint'=>80, | ||
'null'=>true | ||
], | ||
'public_key' =>[ | ||
'type'=>'VARCHAR', | ||
'constraint'=>2000 | ||
], | ||
]); | ||
$this->forge->createTable('oauth_jwt'); | ||
} | ||
|
||
public function down() | ||
{ | ||
$this->forge->dropTable('oauth_jwt'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.