Add remark

0.2
lishengzhao 2015-02-04 12:57:28 +08:00
parent 55a14674f2
commit 8cb764a7e7
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
方式1:基于浏览器
方式1:基于浏览器 (访问时后跳到登录页面,登录成功后跳转到redirect_uri指定的地址)
http://localhost:8080/oauth/authorize?client_id=unity-client&redirect_uri=http%3a%2f%2flocalhost%3a8080%2funity%2fdashboard.htm&response_type=code&scope=read
方式2:基于客户端
方式2:基于客户端 (注意参数中的username,password,对应用户的账号,密码)
http://localhost:8080/oauth/token?client_id=unity-client&client_secret=unity&grant_type=password&scope=read,write&username=admin&password=admin