我正在尝试使用Google Oauth v2.我进入我的api控制台并设置以下2重定向uris ...
http://localhost:3000/auth/authenticate
http://localhost:3000/auth/google/getToken
Run Code Online (Sandbox Code Playgroud)
当我运行以下...
curl -d "code=<removed>&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fgoogle%2fgetToken&client_id=<removed>&client_secret=<removed>&grant_type=authorization_code" -X POST https://accounts.google.com/o/oauth2/token
Run Code Online (Sandbox Code Playgroud)
然而,一切都很好
curl -d "code=<removed>&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fauthenticate&client_id=<removed>&client_secret=<removed>&grant_type=authorization_code" -X POST https://accounts.google.com/o/oauth2/token
Run Code Online (Sandbox Code Playgroud)
没说...
"error" : "redirect_uri_mismatch"
Run Code Online (Sandbox Code Playgroud)
我只是改变了这个,是否有传播时间框架?我如何让两个uris工作?
归档时间: |
|
查看次数: |
5516 次 |
最近记录: |