Skip to content

oauth protocol test,oauth2 server/client endpoint,use sa-token,spring-boot

Notifications You must be signed in to change notification settings

netbuffer/oauth-protocol-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oauth-protocol-demo

基于 sa-token 实现oauth2协议

help

编辑C:\Windows\System32\drivers\etc\hosts增加如下配置

127.0.0.1 oauth-server.com
127.0.0.1 oauth-client.com
  1. 访问 /oauth2/authorize 进行登录授权
    检测用户在oauth2 server上的登录状态,登录后,再进行oauth2授权流程
  2. 访问 /oauth2/token 获取access_token等信息
    替换掉其中的code授权码参数