diff --git a/config/authorizationserver.php b/config/authorizationserver.php index 0c1e843..364a4a1 100755 --- a/config/authorizationserver.php +++ b/config/authorizationserver.php @@ -16,5 +16,7 @@ 'scope' => env('AUTHORIZATION_SERVER_SCOPE'), - 'model' => \Illuminate\Foundation\Auth\User::class + 'model' => \Illuminate\Foundation\Auth\User::class, + + 'verify_ssl' => true, ]; diff --git a/src/IntrospectClient.php b/src/IntrospectClient.php index ddec410..ebac476 100644 --- a/src/IntrospectClient.php +++ b/src/IntrospectClient.php @@ -30,7 +30,11 @@ protected function getAccessToken(): string protected function getClient(): Client { if ($this->client === null) { - $this->setClient(new Client()); + $config = [ + 'verify' => (bool) $this->config['verify_ssl'], + ]; + + $this->setClient(new Client($config)); } return $this->client;