Skip to content

使用Gitee的Oauth模拟授权登录,并获取信息

Notifications You must be signed in to change notification settings

Xavier-777/OAuthByJ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

本项目使用Gitee的OAuth模拟第三方跳转登陆,建议自己去申请一个Gitee的OAuth,这样理解代码会更深入,当然,你也可以不申请,直接用我的


申请详见官文文档: https://gitee.com/api/v5/oauth_doc#/


申请成功后,在 OAuthGiteeConst.class 中修改自己的 Client_ID 、Client_Secret 、redirect_uri

还有index.html中,也要修改自己的 client_id 、redirect_uri


使用方法:在 Main.class 中,直接运行 main 方法,然后在浏览器中输入 http://localhost:8088 即可运行项目


博客说明:https://blog.csdn.net/lendsomething/article/details/114867366

About

使用Gitee的Oauth模拟授权登录,并获取信息

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages