定制 twogether/network-sso 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-03-15