Skip to content

Commit

Permalink
Merge pull request #11 from designmynight/verify_ssl_option
Browse files Browse the repository at this point in the history
feat: option to enable/disable ssl
  • Loading branch information
MihailProcudin authored Feb 1, 2022
2 parents 4ef52fc + bfc63ab commit 347e78b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion config/authorizationserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@

'scope' => env('AUTHORIZATION_SERVER_SCOPE'),

'model' => \Illuminate\Foundation\Auth\User::class
'model' => \Illuminate\Foundation\Auth\User::class,

'verify_ssl' => true,
];
6 changes: 5 additions & 1 deletion src/IntrospectClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 347e78b

Please sign in to comment.