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