2022-03-29 21:41:49 +08:00
|
|
|
# HyperfSaml
|
|
|
|
|
用于快速接入单点登录的 Hyperf Component。
|
2022-03-29 19:28:25 +08:00
|
|
|
|
2022-03-29 21:41:49 +08:00
|
|
|
## 安装
|
2022-06-15 18:22:27 +08:00
|
|
|
|
2022-03-29 19:28:25 +08:00
|
|
|
```
|
2022-03-29 21:41:49 +08:00
|
|
|
composer config secure-http false \
|
|
|
|
|
&& composer config repo.lux-map composer https://satis.luxcreo.cn/ \
|
|
|
|
|
&& composer require singularity/hyperf-saml "dev-master"
|
2022-03-29 19:28:25 +08:00
|
|
|
```
|
2022-04-24 19:21:23 +08:00
|
|
|
|
|
|
|
|
## 准备
|
2022-06-15 18:22:27 +08:00
|
|
|
|
|
|
|
|
### 发布配置文件
|
|
|
|
|
|
2022-04-24 19:21:23 +08:00
|
|
|
```shell
|
|
|
|
|
php bin/hyperf.php vendor:publish singularity/hyperf-saml
|
2022-06-15 18:22:27 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### 生成密钥对
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
sh -ex ./vendor/bin/generate-cert
|
2022-04-24 19:21:23 +08:00
|
|
|
```
|