我想通过邮递员获得令牌 Oauth2

时间:2021-02-17 16:59:32

标签: java spring-boot security oauth-2.0 jhipster

我正在尝试这种方式来获取令牌,但是在访问客户端时出现了一些问题 enter image description here

我可以从登录布局登录我可以通过用户名= admin 和密码= admin 访问 但是在邮递员中我无法访问并且结果表单请求是

    {
    "error": "unauthorized_client",
    "error_description": "Client not allowed for direct access grants"
    }

1 个答案:

答案 0 :(得分:2)

您应该将 client_id 更改为直接访问授权 喜欢这张图

enter image description here