web前端接入第三方sso登录 (github、google)

web网站接入GitHub第三方登录(踩坑):https://www.jianshu.com/p/613ed2a9f768

github单点登录实现:

==========================

设置一个登录按钮的跳转信息配置:

<a href="https://github.com/login/oauth/authorize?client_id=yourclientid&redirect_uri=yourredirect_uri">github登录</a>

 

 

 

 

 

点击授权后,跳转你设置的回调地址。

 

 

 

 

====================================

google单点登录实现:

 

posted @ 2021-09-25 20:43  expworld  阅读(721)  评论(0编辑  收藏  举报