feat(sp.acs): 实现了acs所需的服务

This commit is contained in:
李东云
2022-04-26 19:07:44 +08:00
parent 129924ad3d
commit 83634c9637
4 changed files with 322 additions and 38 deletions

View File

@@ -2,23 +2,39 @@
declare(strict_types=1);
/** @noinspection PhpUndefinedConstantInspection */
return [
'type' => 'sp', // 当前项目类型可选值sp/idp
// 当前项目类型
'type' => 'sp', // 可选值sp/idp
// IDP 相关配置
'server' => [
// common config
'idp_id' => '', // 单点登录
// idp config
// sp config
// 以下内容向服务端申请
'idp_assertion_url' => '', // 判断用户是否登录
'idp_logout_url' => '', //单点退出
],
// SP 相关配置
'client' => [
// idp config
// sp config
// 以下内容向服务端申请
'entity_id' => '', // 业务系统唯一标识
'acs_url' => '', // 回调地址
'landing_host' => '', // 站点 host
],
// 证书
'credential' => [
'enable' => false,
'directory' => BASE_PATH . 'cert/', // 签名所在目录
// 证书文件名
'crt' => 'saml.crt',
'pem' => 'saml.pem',
],
];