google 소셜로그인 API가 변경이 된건가요?

google 소셜로그인 API가 변경이 된건가요?

QA

google 소셜로그인 API가 변경이 된건가요?

본문

안녕하세요.

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

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

https://sir.kr/g5_plugin/2213

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

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

 

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

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

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

 

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

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

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


1982110200_1555653998.1349.jpg

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


    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 = 'https://accounts.google.com/o/oauth2/auth';
        $this->token_url     = 'https://www.googleapis.com/oauth2/v4/token';
        $this->token_info    = 'https://www.googleapis.com/oauth2/v2/tokeninfo';
        $this->profile_url   = 'https://www.googleapis.com/oauth2/v2/userinfo';
        $this->scope         = 'https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile';
    }

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


    function get_auth_query()
    {
        $uri = urlencode(urldecode($this->redirect_uri));
        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);
    }

 

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

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

이 질문에 댓글 쓰기 :

답변 2

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

감사합니다.

답변을 작성하시기 전에 로그인 해주세요.
전체 123,126 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT