From 8cb764a7e7694769c429d0644f77b0d5e31cccaa Mon Sep 17 00:00:00 2001 From: lishengzhao Date: Wed, 4 Feb 2015 12:57:28 +0800 Subject: [PATCH] Add remark --- others/oauth_test.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/others/oauth_test.txt b/others/oauth_test.txt index 37e9c7a..6ed26a3 100644 --- a/others/oauth_test.txt +++ b/others/oauth_test.txt @@ -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