Getting a 403 - Forbidden for Google Service Account

后端 未结 3 1886
执笔经年
执笔经年 2020-11-29 11:47

I am trying to get an access token for Google Service Account. Following is my code -

String SERVICE_ACCOUNT_EMAIL = \"edited@developer.gserviceaccount.com\         


        
3条回答
  •  孤城傲影
    2020-11-29 12:22

    Proceed to https://admin.google.com . Login and add Security control if not exists from More Controls. Click on Security->Advance Settings->Manage ThirdParty OAuth Client Access and check that those scopes are added(comma separated) for your xxxxxxxxxxxxxxxxxx.apps.googleusercontent.com service account id/client id.

提交回复
热议问题