Skip to content

Commit 347e78b

Browse files
Merge pull request #11 from designmynight/verify_ssl_option
feat: option to enable/disable ssl
2 parents 4ef52fc + bfc63ab commit 347e78b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

config/authorizationserver.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@
1616

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

19-
'model' => \Illuminate\Foundation\Auth\User::class
19+
'model' => \Illuminate\Foundation\Auth\User::class,
20+
21+
'verify_ssl' => true,
2022
];

src/IntrospectClient.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ protected function getAccessToken(): string
3030
protected function getClient(): Client
3131
{
3232
if ($this->client === null) {
33-
$this->setClient(new Client());
33+
$config = [
34+
'verify' => (bool) $this->config['verify_ssl'],
35+
];
36+
37+
$this->setClient(new Client($config));
3438
}
3539

3640
return $this->client;

0 commit comments

Comments
 (0)