Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
9IPOCTb

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

Recommended Posts

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

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

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

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

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

Share this post


Link to post
Share on other sites

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

  • Upvote 1

Share this post


Link to post
Share on other sites

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>"}

Share this post


Link to post
Share on other sites
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

  • Upvote 1

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...