From 73ec77bff2e61871c4cdf68a5e53d599a37372e7 Mon Sep 17 00:00:00 2001 From: nextgenstack <51startup@sina.com> Date: Mon, 5 Nov 2018 21:30:57 +0800 Subject: [PATCH] fix client secret --- lab01/authcode-server/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lab01/authcode-server/README.md b/lab01/authcode-server/README.md index 3a6efcd..56d16b7 100644 --- a/lab01/authcode-server/README.md +++ b/lab01/authcode-server/README.md @@ -17,7 +17,7 @@ http://localhost:9001/callback?code=8uYpdo ### 2. 获取访问令牌 -curl -X POST --user clientapp:123456 http://localhost:8080/oauth/token -H +curl -X POST --user clientapp:112233 http://localhost:8080/oauth/token -H "content-type: application/x-www-form-urlencoded" -d "code=8uYpdo&grant_type=authorization_code&redirect_uri=http%3A%2F%2Flocalh ost%3A9001%2Fcallback&scope=read_userinfo"