Skip to content

Commit

Permalink
Add default option
Browse files Browse the repository at this point in the history
  • Loading branch information
half2me committed Feb 26, 2019
1 parent d1c0fa6 commit 21762e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Auth/SocialAuthenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public function unauthenticated(ServerRequest $request, Response $response)
$request->getSession()->write('oauth2state', $provider->getState());
}

$authParams = $this->getConfig(sprintf('providers.%s.authParams', $request->getParam('provider')));
$authParams = $this->getConfig(sprintf('providers.%s.authParams', $request->getParam('provider')), []);

$response = $response->withLocation($provider->getAuthorizationUrl($authParams));

Expand Down

0 comments on commit 21762e8

Please sign in to comment.