Merge pull request #779 from sijad/uri-fix

Correct redirect uri in OAuth2 Controller
This commit is contained in:
Toby Zerner 2016-02-10 07:06:14 +10:30
commit 9324af12ea

View File

@ -38,7 +38,7 @@ abstract class AbstractOAuth2Controller implements ControllerInterface
*/
public function handle(Request $request)
{
$redirectUri = (string) $request->getUri()->withQuery('');
$redirectUri = (string) $request->getAttribute('originalUri', $request->getUri())->withQuery('');
$provider = $this->getProvider($redirectUri);