andy61 发表于 2023-2-10 14:03:44

oauth2单点登录 通过header中的 Authorization 进行认证如何实现

本帖最后由 andy61 于 2023-2-10 14:06 编辑

1.获取认证服务器code:
https://XXX.com/oauth/authorize?response_type=code&client_id=<clientID>&scope=openid+profile&redirect_uri=<URL>
2 根据code获取token
curl https://XXX.com/curl -G https://g1openid.crcc.cn/oauth/t ... =authorization_code"&"code=<授权码>"&"redirect_uri=<URL> \
-H "Authorization:Basic Base64(<clientID>:<clientSecret>)"

其中第二部使用 header中的 Authorization 进行认证的,在O2OA中应该如何实现?

andy61 发表于 2023-2-11 15:40:01

相关代码修修正并增加 header方式的配置
在 gitee中pull request了 oauth2问题修复与增加Header方式认证

启蒙星 发表于 2023-2-13 09:31:39

感谢分享
页: [1]
查看完整版本: oauth2单点登录 通过header中的 Authorization 进行认证如何实现