Skip to content

Авторизация через Google

Здравствуйте, уважаемые форумчане! Появилась проблема, при настройки входа через Google и прописывании данных Идентификатор и Закрытый ключ выдает ошибку:

Google отклонил введённую информацию. Пожалуйста, проверьте данные, которые вы ввели и попробуйте ещё раз.

с чем это может быть связано? делал все по инструкции:

https://invisionpower.com/4guides/how-to-use-ips-community-suite/social-sign-in/google-r234/

Заранее, спасибо.

Featured Replies

IPB 3 или IPS 4?

  • Author

IPS 4.1.17.1

В логах системы System -> Support -> System Logs должен быть лог ответа от гугла - Google oauth error.

  • Author

Google oauth error:

 

{"httpResponseVersion":"1.1","httpResponseCode":"400","httpResponseText":"Bad Request\r","httpHeaders":{"Content-Type":"text\/html; charset=utf-8","Cache-Control":"no-cache, no-store, max-age=0, must-revalidate","Pragma":"no-cache","Expires":"Mon, 01 Jan 1990 00:00:00 GMT","Date":"Wed, 21 Dec 2016 21:34:38 GMT","Server":"ESF","X-XSS-Protection":"1; mode=block","X-Frame-Options":"SAMEORIGIN","Alt-Svc":"quic=\":443\"; ma=2592000; v=\"35,34\"","Accept-Ranges":"none","Vary":"Accept-Encoding","Transfer-Encoding":"chunked"},"content":"<!DOCTYPE html><html lang=en><meta charset=utf-8><meta name=viewport content=\"initial-scale=1, minimum-scale=1, width=device-width\"><title>Error 400 (OAuth2 Error)!!1<\/title><style>*{margin:0;padding:0}html,code{font:15px\/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{color:#222;text-align:unset;margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px;}* > body{background:url(\/\/www.google.com\/images\/errors\/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}pre{white-space:pre-wrap;}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(\/\/www.google.com\/images\/branding\/googlelogo\/1x\/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(\/\/www.google.com\/images\/branding\/googlelogo\/2x\/googlelogo_color_150x54dp.png) no-repeat 0% 0%\/100% 100%;-moz-border-image:url(\/\/www.google.com\/images\/branding\/googlelogo\/2x\/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(\/\/www.google.com\/images\/branding\/googlelogo\/2x\/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}<\/style><div id=\"af-error-container\"><a href=\/\/www.google.com\/><span id=logo aria-label=Google><\/span><\/a><p><b>400.<\/b> <ins>That\u2019s an error.<\/ins><p><script src=\'https:\/\/ssl.gstatic.com\/accounts\/o\/2704975912-common_lib.js\'><\/script><style>\n    #request_info_header {\n      cursor: default;\n      outline: none;\n      padding-left: 14px;\n      padding-top: 10px;\n    }\n\n    #request_info_items {\n      line-height: 18px;\n      list-style-type: none;\n      margin-top: 8px;\n      padding-left: 14px;\n    }\n\n    .param_entry {\n      margin-top: 2px;\n    }\n\n    .goog-zippy-expanded,\n    .goog-zippy-collapsed {\n      list-style: none;\n      padding: 2px 0 1px 15px;\n      position: relative;\n    }\n\n    .goog-zippy-expanded:before {\n      content: url(https:\/\/ssl.gstatic.com\/ui\/v1\/zippy\/arrow_down.png);\n      left: 1px;\n      position: absolute;\n      top: 7px;\n    }\n\n    .goog-zippy-collapsed:before {\n      content: url(https:\/\/ssl.gstatic.com\/ui\/v1\/zippy\/arrow_right.png);\n      left: 3px;\n      position: absolute;\n      top: 6px;\n    }\n  <\/style><p id=\"errorCode\"><b>Error: redirect_uri_mismatch<\/b><\/p><p id=\"errorDescription\">The redirect URI in the request, http:\/\/форум.ру\/applications\/core\/interface\/google\/auth.php, does not match the ones authorized for the OAuth client. Visit https:\/\/console.developers.google.com\/apis\/credentials\/oauthclient\/<%client%>?project=<%project%> to update the authorized redirect URIs.<\/p><p id=\"errorUri\"><a target=\"_blank\" href=\"http:\/\/developers.google.com\/accounts\/docs\/OAuth2Login#setredirecturi\">Learn more<\/a><\/p><div id=\"request_info_header\">Request Details<ul id=\"request_info_items\"><li class=\"param_entry\" id=\"param_entry_0\">response_type=code<\/li><li class=\"param_entry\" id=\"param_entry_1\">client_id=<%id%><\/li><li class=\"param_entry\" id=\"param_entry_2\">redirect_uri=http:\/\/форум.ру\/applications\/core\/interface\/google\/auth.php<\/li><li class=\"param_entry\" id=\"param_entry_3\">scope=https:\/\/www.googleapis.com\/auth\/userinfo.email https:\/\/www.googleapis.com\/auth\/userinfo.profile<\/li><li class=\"param_entry\" id=\"param_entry_4\">state=<%state%>\/li><\/ul><\/div><script type=\"text\/javascript\">lso.doZippy(\"request_info_header\", \"request_info_items\");<\/script><p> <ins>That\u2019s all we know.<\/ins><\/div>"}

Error: redirect_uri_mismatch

 

The redirect URI in the request, форум.ру/applications/core/interface/google/auth.php, does not match the ones authorized for the OAuth client

  • Author

спасибо большое! Помогло!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.