我正在尝试使用邮递员从Keycloak服务器获取访问令牌。
我一直遵循此link,并创建了本教程中提到的领域,用户,角色凭证。
但是当我发出请求时,它会无限期地继续,不返回任何内容。
编辑:我也尝试将Grant_type设置为“ password”和“ client_credentials”。但没有运气。
这是从PostMan获取令牌的正确方法
https://<IP ADDRESS>:<PORT>/auth/realms/master/protocol/openid-connect/token
在主体部分中选择x-www-form-urlencoded
x-www-form-urlencoded
{ "username": "admin", "password": "admin", "client_id": "APP-NAME", "grant_type": "password", "client_secret": "462fe347-d47f-4365-94ee-6aefff994ef2" }
要获得更清晰的解决方案,请像这样使用