Skip to content

Commit 0a1d5a6

Browse files
author
Felipe da Silva Pinheiro
committed
Server client added
1 parent 1ed0555 commit 0a1d5a6

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Services/Client.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,15 @@ public static function getClient()
1717
]
1818
]);
1919
}
20+
21+
public static function getServerClient()
22+
{
23+
return new \GuzzleHttp\Client([
24+
'base_uri' => config('openid.server'),
25+
'headers' => [
26+
'ClientId' => config('openid.client.id'),
27+
'ClientSecret' => config('openid.client.secret')
28+
]
29+
]);
30+
}
2031
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "univicosa/laravel-openid-client",
33
"description": "OpenId Client",
4-
"version": "0.7.3",
4+
"version": "0.7.4",
55
"authors": [
66
{
77
"name": "Felipe da Silva Pinheiro",

0 commit comments

Comments
 (0)