mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-01 16:33:07 +05:30
Fix for redirect_uri
This commit is contained in:
parent
f6cc8bbb42
commit
6dd4caf056
@ -15,7 +15,7 @@ class ClientRepository implements ClientRepositoryInterface
|
|||||||
'myawesomeapp' => [
|
'myawesomeapp' => [
|
||||||
'secret' => password_hash('abc123', PASSWORD_BCRYPT),
|
'secret' => password_hash('abc123', PASSWORD_BCRYPT),
|
||||||
'name' => 'My Awesome App',
|
'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
|
// Check if redirect URI is valid
|
||||||
if ($redirectUri !== null && $redirectUri !== $clients[$clientIdentifier]['redirectUri']) {
|
if ($redirectUri !== null && $redirectUri !== $clients[$clientIdentifier]['redirect_uri']) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user