Skip to content

Commit

Permalink
Allow use of samlidp.certname config in meta controller
Browse files Browse the repository at this point in the history
  • Loading branch information
upwebdesign committed Jan 12, 2021
1 parent bb255d5 commit 325e976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/MetadataController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function index()
\Barryvdh\Debugbar\Facade::disable();
}

$cert = Storage::disk('samlidp')->get('cert.pem');
$cert = Storage::disk('samlidp')->get(config('samlidp.certname', 'cert.pem'));
$cert = preg_replace('/^\W+\w+\s+\w+\W+\s(.*)\s+\W+.*$/s', '$1', $cert);
$cert = str_replace(PHP_EOL, "", $cert);

Expand Down

0 comments on commit 325e976

Please sign in to comment.