yii2, google outh2 and scope

前端 未结 3 1268
陌清茗
陌清茗 2021-01-05 08:43

I am using Yii2, GoogleOAuth and yii2-user extension. I want to receive user google circles and set scope to my config:

\'authClientCollection\' => [
             


        
3条回答
  •  情话喂你
    2021-01-05 09:14

    I was also facing this problem and got solution to change the Redirect URI in project Credentials like below:

    Redirect URIs

     http://mysiteurl.com/user/sign-in/oauth?authclient=google
     http://mysiteurl.com/oauth2callback
    

    JavaScript origins

     http://mysiteurl.com
    

提交回复
热议问题