테스트 사이트 - 개발 중인 베타 버전입니다

google 소셜로그인 API가 변경이 된건가요? 채택완료

안녕하세요.

저는 편리님께서, 2017.01.20 에 배포하신

"그누보드5 소셜로그인 v2" 플러그인을 사용하고 있습니다.

https://sir.kr/g5_plugin/2213">https://sir.kr/g5_plugin/2213

현재, "네이버 로그인", "카톡 로그인"은 잘 작동되는데,

"페이스북 로그인", "google 로그인" 은 에러가 발생하네요?

 

"페이스북 소셜 로그인"은 운영정책이 변경이 되여서,

https:// 도메인만 이용이 가능하다는 것 같은데요.

부득이하지만, 페이스북 API는 사용하지 않으면 될 것 같구요.

 

google 로그인은 이상하게 로그인이 되지 않네요?

에러가 메시지도 안 보이고, 브라우저가 응답도 없습니다.

google API는 네이버나, 카톡처럼 문의게시판도 하나 없구요 ㅠㅠ

URL 설정 (plugin/oauth/google/oauth.lib.php)

</p>

<p>    function __construct($client_id, $client_secret)

    {

        $this->client_id     = $client_id;

        $this->client_secret = $client_secret;

        $this->redirect_uri  = SS_OAUTH_CALLBACK_URL.'?service=google';

        $this->ss_name       = 'ss_ggl_state_token';

        $this->authorize_url = '<a href="https://accounts.google.com/o/oauth2/auth';" target="_blank" rel="noopener noreferrer">https://accounts.google.com/o/oauth2/auth';</a>

        $this->token_url     = '<a href="https://www.googleapis.com/oauth2/v4/token';" target="_blank" rel="noopener noreferrer">https://www.googleapis.com/oauth2/v4/token';</a>

        $this->token_info    = '<a href="https://www.googleapis.com/oauth2/v2/tokeninfo';" target="_blank" rel="noopener noreferrer">https://www.googleapis.com/oauth2/v2/tokeninfo';</a>

        $this->profile_url   = '<a href="https://www.googleapis.com/oauth2/v2/userinfo';" target="_blank" rel="noopener noreferrer">https://www.googleapis.com/oauth2/v2/userinfo';</a>

        $this->scope         = '<a href="https://www.googleapis.com/auth/userinfo.email" target="_blank" rel="noopener noreferrer">https://www.googleapis.com/auth/userinfo.email</a> <a href="https://www.googleapis.com/auth/userinfo.profile';" target="_blank" rel="noopener noreferrer">https://www.googleapis.com/auth/userinfo.profile';</a>

    }</p>

<p>

GET 요청 소스  (plugin/oauth/google/oauth.lib.php)

</p>

<p>    function get_auth_query()

    {

        $uri = urlencode(urldecode($this->redirect_uri));</p>

<p>        return $this->authorize_url.'?access_type=offline&approval_prompt=auto&client_id='.$this->client_id.'&response_type=code&redirect_uri='.$uri.'&state='.$this->token.'&scope='.urlencode($this->scope);

    }</p>

<p>

 

이 부분을 어떻게 고쳐야 하는지요?

소셜로그인 연동 작업을 해보신 분들, 좀 알려주시면 대단히 고맙겠습니다.

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트

google plus api 사용이 중지 되어 그럴 것입니다.

google api 콘솔에서 

일반 google api 를 사용하게 설정 하시면 될것 입니다.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

덕분에 좋은 팁을 알게 되었습니다.

감사합니다.

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

저기... 해결이 되셨는지 여쭙습니다. 혹시 scope 문제는 아니었던가요?

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인

전체 질문 목록

🐛 버그신고