twogether/network-sso
最新稳定版本:2.4.1
Composer 安装命令:
composer require twogether/network-sso
包简介
Twogether Network SSO Client
README 文档
README
See the Vanilla PHP implementation for full documentation.
Important Note
Make sure your Session cookies and any other important login information have SameSite set to None.
Network API
Calling Remote APIs
To contact a remote API in the network, you will need a Bearer token. You can get one from the NetworkSSO object by calling
$token = $network_sso->getApiToken($user_id = null);
This will return a token that you can add to an Authorization header e.g:
$YourFavouriteHttpLibrary->addHeader('Authorization: Bearer '.$token);
If you pass in a user ID this will be sent to the remote API. Check with them whether that's expected or required.
统计信息
- 总下载量: 41.95k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-03-15