Fix for redirect_uri

This commit is contained in:
Alex Bilbie 2016-02-12 14:17:58 +00:00
parent f6cc8bbb42
commit 6dd4caf056

View File

@ -15,7 +15,7 @@ class ClientRepository implements ClientRepositoryInterface
'myawesomeapp' => [
'secret' => password_hash('abc123', PASSWORD_BCRYPT),
'name' => 'My Awesome App',
'redirect_uri' => ''
'redirect_uri' => 'http://foo/bar'
]
];
@ -30,7 +30,7 @@ class ClientRepository implements ClientRepositoryInterface
}
// Check if redirect URI is valid
if ($redirectUri !== null && $redirectUri !== $clients[$clientIdentifier]['redirectUri']) {
if ($redirectUri !== null && $redirectUri !== $clients[$clientIdentifier]['redirect_uri']) {
return null;
}