mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-04-28 23:34:53 +02:00
fix signining in with IdPs other than 1
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
c058e1736d
commit
fae25fa4ab
|
@ -27,9 +27,6 @@ return [
|
|||
'name' => 'SAML#login',
|
||||
'url' => '/saml/login',
|
||||
'verb' => 'GET',
|
||||
'defaults' => [
|
||||
'idp' => 1
|
||||
],
|
||||
],
|
||||
[
|
||||
'name' => 'SAML#base',
|
||||
|
@ -40,17 +37,11 @@ return [
|
|||
'name' => 'SAML#getMetadata',
|
||||
'url' => '/saml/metadata',
|
||||
'verb' => 'GET',
|
||||
'defaults' => [
|
||||
'idp' => 1
|
||||
],
|
||||
],
|
||||
[
|
||||
'name' => 'SAML#assertionConsumerService',
|
||||
'url' => '/saml/acs',
|
||||
'verb' => 'POST',
|
||||
'defaults' => [
|
||||
'idp' => 1
|
||||
],
|
||||
],
|
||||
[
|
||||
'name' => 'SAML#singleLogoutService',
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue