diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-08-24 15:32:57 +0300 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2022-08-24 15:32:57 +0300 |
commit | fae25fa4ab016275ccf99ac11b306a1c5e9c6550 (patch) | |
tree | b3bde5a6b7918a5c3633a6fb14d146c725a0eb5a /lib | |
parent | c058e1736d3e365489999b493fbfdfe9d41eb246 (diff) |
fix signining in with IdPs other than 1fix/630/default-idp-value
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/SAMLController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/SAMLController.php b/lib/Controller/SAMLController.php index 14f19967..8db6ac97 100644 --- a/lib/Controller/SAMLController.php +++ b/lib/Controller/SAMLController.php @@ -167,7 +167,7 @@ class SAMLController extends Controller { * @return Http\RedirectResponse * @throws \Exception */ - public function login($idp) { + public function login(int $idp = 1) { $type = $this->config->getAppValue($this->appName, 'type'); switch ($type) { case 'saml': @@ -242,7 +242,7 @@ class SAMLController extends Controller { * @return Http\DataDownloadResponse * @throws Error */ - public function getMetadata($idp) { + public function getMetadata(int $idp = 1) { $settings = new Settings($this->samlSettings->getOneLoginSettingsArray($idp)); $metadata = $settings->getSPMetadata(); $errors = $settings->validateMetadata($metadata); |