got 'invalid_grant' in oauth2 SignedJwtAssertionCredentials

前端 未结 3 1184
天命终不由人
天命终不由人 2021-02-07 13:21

I am trying to make an oauth2 access_token in a server-to-server JSON API scenario. But it failed with invalid_grant error, please help.

from oauth2client.client         


        
3条回答
  •  一生所求
    2021-02-07 13:27

    I fixed it.

    SERVICE_ACCOUNT_EMAIL = 'xxxxxx.apps.googleusercontent.com'
    

    the above is client ID not Email, I fixed this and it's working now.

提交回复
热议问题