diff --git a/config/authorizationserver.php b/config/authorizationserver.php index b961585..0c1e843 100755 --- a/config/authorizationserver.php +++ b/config/authorizationserver.php @@ -1,11 +1,20 @@ env('AUTHORIZATION_SERVER_AUTHORIZATION_URL'), + 'redirect_url' => env('AUTHORIZATION_SERVER_REDIRECT_URL'), + 'token_url' => env('AUTHORIZATION_SERVER_TOKEN_URL'), + 'introspect_url' => env('AUTHORIZATION_SERVER_INTROSPECT_URL'), + 'client_id' => env('AUTHORIZATION_SERVER_CLIENT_ID'), + 'client_secret' => env('AUTHORIZATION_SERVER_CLIENT_SECRET'), + 'scope' => env('AUTHORIZATION_SERVER_SCOPE'), + + 'model' => \Illuminate\Foundation\Auth\User::class ]; diff --git a/src/Introspect.php b/src/Introspect.php index b893499..7d9f45f 100644 --- a/src/Introspect.php +++ b/src/Introspect.php @@ -15,12 +15,13 @@ class Introspect protected $client = null; protected $result; protected $userDataKey = 'user'; - protected $userModelClass = User::class; + protected $userModelClass; public function __construct(IntrospectClient $client, Request $request) { $this->client = $client; $this->request = $request; + $this->setUserModelClass(config('authorizationserver.model', User::class)); } protected function getIntrospectionResult()