xiaobin_hlj80

https://blog.csdn.net/xiaobin_HLJ80 http://blog.chinaunix.net/uid/31552151.html

导航

postman使用

    

1: Get Token

1) Basic Auth
(AuthorizationServerConfig.java)
Username: devglan-client
passoword: devglan-secret
2) grant info
(x-www-formurlencoded)
row1: username, Alex123
row2: password, password
row3: grant_type, password
3) run
url: http://localhost:8080/oauth/token
method: post

2: Access Token
Use the information obtained from the above.

1) run
url: http://localhost:8080/users/user?access_token=XXX
method: get

XXX: access_token value; For example: f9810f62-b775-4c2e-b4e2-a0b033699f2b.

3: Refresh Token
Same as 1.Just change the grant information.
1) Basic Auth
Omitted...
2) grant info
(x-www-formurlencoded)
row1: username, Alex123
row2: password, password
row3: grant_type, refresh_token
row4: refresh_token, XXX

XXX: refresh_token value; For example: 7ebc4c7e-58b1-4322-baa6-f6e468cef034.
3) run
Omitted...

posted on 2018-04-13 03:09  xiaobin80  阅读(150)  评论(0编辑  收藏  举报