Google Oauth v2 を使用しようとしています。API コンソールに移動し、次の 2 つのリダイレクト uris を設定します...
http://localhost:3000/auth/authenticate
http://localhost:3000/auth/google/getToken
以下を実行すると...
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
すべてがうまく機能しますが、
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
と言って失敗...
"error" : "redirect_uri_mismatch"
これを変更したばかりですが、伝播時間枠はありますか? 両方の URI を機能させるにはどうすればよいですか?