Tag: google oauth java client

Google OAUTH:请求中的redirectURI与注册的redirectURI不匹配

我正尝试从基于Java的networking应用程序上传到YouTube,我花了几天的时间来了解问题所在以及问题所在,我无法得到它,因为现在我正在将我的头发从头上拉开。 我在Google Console中注册了我的networking应用程序,所以我得到了一对客户端ID和秘密,并可以使用我的configuration下载JSONtypes的文件。 所以这里是configuration: { "web":{ "auth_uri":"https://accounts.google.com/o/oauth2/auth", "client_secret":"***", "token_uri":"https://accounts.google.com/o/oauth2/token", "client_email":"***", "redirect_uris":["http://localhost:8080/WEBAPP/youtube-callback.html","http://www.WEBAPP.md/youtube-callback.html"], "client_x509_cert_url":"***", "client_id":"***", "auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs", "javascript_origins":["http://www.WEBAPP.md/"] } } 我有可能获得Google的默认url吗? The redirect URI in the request: http://localhost:8080/Callback did not match a registered redirect URI 它总是给我默认的http://localhost:8080/Callback URL而不是我的。 和IDE控制台显示我: Please open the following address in your browser: https://accounts.google.com/o/oauth2/auth?client_id=***&redirect_uri=http://localhost:8080/Callback&response_type=code&scope=https://www.googleapis.com/auth/youtube.upload Attempting to open that address in the default browser now… 我正在使用最后一个版本的依赖项: […]