通过实现github授权登录来理解Oauth2.0协议
- java1.8
- Maven
client_secret和client_id不写在项目里,为了安全考虑,运行前从github拷贝过来即可
运行前需要补充OauthConstants
中的client_secret
和client_id
, 以及login.html
中的client_id
- 启动
MyOauthDemoApplication
- 访问
http://localhost:8080/login.html
通过实现github授权登录来理解Oauth2.0协议
client_secret和client_id不写在项目里,为了安全考虑,运行前从github拷贝过来即可
运行前需要补充OauthConstants
中的client_secret
和client_id
, 以及login.html
中的client_id
MyOauthDemoApplication
http://localhost:8080/login.html