Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/283.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
当我访问SimpleSAMLphp核心登录页面时,如何重定向到authsource中配置的第一个登录模块?_Php_Single Sign On_Simplesamlphp - Fatal编程技术网

当我访问SimpleSAMLphp核心登录页面时,如何重定向到authsource中配置的第一个登录模块?

当我访问SimpleSAMLphp核心登录页面时,如何重定向到authsource中配置的第一个登录模块?,php,single-sign-on,simplesamlphp,Php,Single Sign On,Simplesamlphp,我正在将SimpleSAMLphp服务器设置为IdP。在我的authsources.php中,我配置了3个身份验证模块:multiauth:multiauth,saml:SP,以及一个基于SQLAuth模块的自定义模块 当我访问默认的simplesamlphp登录页面时:examample.com/simplesaml/module.php/core/login我看到了3个身份验证选项 我想要的是,当我访问该登录页面时,它应该直接重定向到其中一个模块登录页面,例如到multiauth:multi

我正在将SimpleSAMLphp服务器设置为IdP。在我的
authsources.php
中,我配置了3个身份验证模块:
multiauth:multiauth
saml:SP
,以及一个基于SQLAuth模块的自定义模块

当我访问默认的simplesamlphp登录页面时:
examample.com/simplesaml/module.php/core/login
我看到了3个身份验证选项

我想要的是,当我访问该登录页面时,它应该直接重定向到其中一个模块登录页面,例如到
multiauth:multiauth
,即
/multiauth/selectsource.php


我无法直接重定向,因为它需要一个
AuthState
参数,这是我的问题。

metadata/saml20 idp hosted.php
中,您需要提供一个
auth
参数,该参数指定希望用于idp的身份验证源,即,如果您在
config/authsources.php
中定义了
multiauth:multiauth
身份验证源,如:

那么对于您的IdP,您的
元数据/saml20 IdP hosted.php
应该包括以下内容:

'__DYNAMIC:1__' => [
  'host' => '__DEFAULT__',
  'privatekey' => 'example.org.pem',
  'certificate' => 'example.org.crt',
  'auth' => 'example-multi',
],

这将指定此IdP的默认身份验证源。

元数据/saml20 IdP hosted.php
中,您需要提供一个
auth
参数,该参数指定您希望用于IdP的身份验证源,即,如果您在
config/authsources.php
中定义了
multiauth:multiauth
身份验证源,如:

那么对于您的IdP,您的
元数据/saml20 IdP hosted.php
应该包括以下内容:

'__DYNAMIC:1__' => [
  'host' => '__DEFAULT__',
  'privatekey' => 'example.org.pem',
  'certificate' => 'example.org.crt',
  'auth' => 'example-multi',
],
这将指定此IdP的默认身份验证源