OAuth 2.0(适用于Google云端硬盘的服务器到服务器应用程序)中的Grant_type和凭据无效

时间:2018-08-08 04:23:39

标签: oauth-2.0 google-oauth postman google-drive-realtime-api google-openidconnect

执行以下所有步骤之后: https://developers.google.com/identity/protocols/OAuth2ServiceAccount

并使用邮递员发出访问令牌请求: https://www.googleapis.com/oauth2/v4/token

我收到以下错误:

"error": "invalid_grant",
"error_description": "Invalid JWT Signature."

我还尝试了没有OAuth的服务帐户授权, 并收到错误:

{"error": {

        "errors": [
            {
                "domain": "global",
                "reason": "authError",
                "message": "Invalid Credentials",
                "locationType": "header",
                "location": "Authorization"
            }
        ],
        "code": 401,
        "message": "Invalid Credentials"
    }
}

可能是什么问题,我该如何解决?

0 个答案:

没有答案