mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 23:18:10 +00:00
This commit is contained in:
parent
4f251bf37e
commit
42b515e322
21 changed files with 2212 additions and 32 deletions
|
|
@ -60,7 +60,7 @@ class OidcProvider extends AbstractProvider implements ProviderInterface
|
|||
{
|
||||
try {
|
||||
$url = $this->baseUrl.'/.well-known/openid-configuration';
|
||||
$client = new Client();
|
||||
$client = app(Client::class);
|
||||
$response = $client->get($url);
|
||||
$this->oidcConfig = json_decode($response->getBody()->getContents(), true);
|
||||
|
||||
|
|
@ -122,7 +122,7 @@ class OidcProvider extends AbstractProvider implements ProviderInterface
|
|||
/**
|
||||
* Map the raw user array to a Socialite User instance.
|
||||
*/
|
||||
protected function mapUserToObject(array $user)
|
||||
public function mapUserToObject(array $user)
|
||||
{
|
||||
return (new User)->setRaw($user)->map([
|
||||
'id' => $user['sub'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue