We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28892ed commit c7829faCopy full SHA for c7829fa
Keycloak.php
@@ -41,7 +41,7 @@ public function getEndpoint(string $endpoint)
41
if (!isset($this->discovery)) {
42
$plugin = plugin_load('helper', 'oauthkeycloak');
43
$json = file_get_contents($plugin->getConf('openidurl'));
44
- if (!$json) return '';
+ if (!$json) throw new \Exception('Failed accessing ' . $plugin->getConf('openidurl'));
45
$this->discovery = json_decode($json, true);
46
}
47
if (!isset($this->discovery[$endpoint])) return '';
0 commit comments