OAuth2 密码授予抱怨 response_type

OAuth2 password grant complaining about response_type

我正在尝试从基于 django-oauth-toolkit through a client registered with the Resource Owner Credentials Grant 的 OAuth2 提供程序获取访问令牌。

根据 specification,这种类型的授权不需要 response_type 参数,但每当我 POST授权端点:

error=invalid_request&error_description=Missing+response_type+parameter.

不用说,在请求中提供grant_type="password"usernamepasswordclient_id/client_secret用于验证客户端使用基本身份验证(因为客户端是“机密的”)。

有猜想吗?

您不能POST授权给授权端点,而是令牌端点。