Skip to content
Snippets Groups Projects

Resolve #3412622 "Ifempty public key"

1 file
+ 8
6
Compare changes
  • Side-by-side
  • Inline
@@ -46,12 +46,14 @@ class ResourceServer implements ResourceServerInterface {
@@ -46,12 +46,14 @@ class ResourceServer implements ResourceServerInterface {
) {
) {
try {
try {
$public_key = $config_factory->get('simple_oauth.settings')->get('public_key');
$public_key = $config_factory->get('simple_oauth.settings')->get('public_key');
$public_key_real = realpath($public_key);
if ($public_key) {
if ($public_key && $public_key_real) {
$public_key_real = realpath($public_key);
$this->subject = new LeageResourceServer(
if ($public_key_real) {
$access_token_repository,
$this->subject = new LeageResourceServer(
$public_key_real
$access_token_repository,
);
$public_key_real
 
);
 
}
}
}
}
}
catch (\LogicException $exception) {
catch (\LogicException $exception) {
Loading