Skip to content

Commit

Permalink
author infor
Browse files Browse the repository at this point in the history
  • Loading branch information
razor9999 committed Jan 14, 2016
1 parent 90ccecf commit a2634c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public function up()
$table->string('client_id', 40);
$table->enum('owner_type', ['client', 'user'])->default('user');
$table->string('owner_id');
$table->string('session_key');
$table->string('client_redirect_uri')->nullable();
$table->timestamps();

Expand Down
2 changes: 2 additions & 0 deletions src/Storage/FluentSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace LucaDegasperi\OAuth2Server\Storage;

use Carbon\Carbon;
use Illuminate\Support\Facades\Session;
use League\OAuth2\Server\Entity\AccessTokenEntity;
use League\OAuth2\Server\Entity\AuthCodeEntity;
use League\OAuth2\Server\Entity\ScopeEntity;
Expand Down Expand Up @@ -115,6 +116,7 @@ public function create($ownerType, $ownerId, $clientId, $clientRedirectUri = nul
'client_id' => $clientId,
'owner_type' => $ownerType,
'owner_id' => $ownerId,
'session_key' => Session::getId(),
'client_redirect_uri' => $clientRedirectUri,
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
Expand Down

0 comments on commit a2634c3

Please sign in to comment.