Skip to content
/ - Public

史上最通俗易懂的Oauth2.0+SpringSecurity+SpringBoot安全体系入门案例

Notifications You must be signed in to change notification settings

LRCgtp/-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

一。基于内存存储令牌和授权码
1.授权模式
获取授权码:
GET: http://localhost:8080/oauth/authorize?client_id=web&response_type=code&redirect_uri=http://localhost:8080/user/login
获取token令牌:
POST: http://localhost:8080/oauth/token?client_id=web&client_secret=secret&grant_type=authorization_code&code=iSFJgM&redirect_uri=http://localhost:8080/user/login#/a

2.密码模式:
POST: http://localhost:8080/oauth/token?client_id=qq&client_secret=qq:secret&grant_type=password&username=lrc&password=123&scope=red

3.客户端模式
POST: http://localhost:8080/oauth/token?client_id=wechat&client_secret=wechat:secret&grant_type=client_credentials&scope=write

About

史上最通俗易懂的Oauth2.0+SpringSecurity+SpringBoot安全体系入门案例

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published