We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efe77bc commit df2e3ebCopy full SHA for df2e3eb
1 file changed
lib/Server.php
@@ -66,7 +66,12 @@ public static function getConfigClient() {
66
if ($clientId) {
67
$registeredClient = ClientRegistration::getRegistration($clientId);
68
}
69
- if (isset($registeredClient)) { //FIXME: $registeredClient may be false, what then?
+ if (isset($registeredClient)) {
70
+ if (!$registeredClient || !isset($registeredClient['redirect_uris'])) {
71
+ //TODO: better to throw an error and handle that on the outside
72
+ header("HTTP/1.1 400 Bad request");
73
+ exit();
74
+ }
75
return new ConfigClient(
76
$clientId,
77
$registeredClient['client_secret'] ?? '',
0 commit comments