无法从Keycloak获取oauth令牌 [英] unable to get oauth token from Keycloak

查看:839
本文介绍了无法从Keycloak获取oauth令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个正在从Keycloak获取Auth的应用程序.

I have an application which is getting Auth from Keycloak.

我的访问类型是公开的,因此我没有任何客户端机密.

My Access Type is public so I do not have any client secret.

我已以 ON

请参阅以下内容:

我从邮递员那里收到了以下错误消息:

I am getting error from postman as below:

{
    "error": "invalid_grant",
    "error_description": "Invalid user credentials"
}

注意:我的凭据正确,因为我正在使用它登录密钥斗篷

Note : My credentials is right as I am using same to login on keycloak

我还检查了密钥,根据以下参考文献,它们似乎是正确的:

I have also check the key and they seems correct as per below reference:

https://gist.github.com/rac021/623e4f4c87069acd0c38d952568f8a3d

根据我的理解进行设置.

while I have setup as per my understanding.

参考文献:

如果我遗漏了任何东西,或者您需要更多详细信息,请告诉我.

Please let me know if I missing anything or you need any more details.

任何解决方法将不胜感激!!!!

Any workaround will be appreciated !!!!

推荐答案

错误消息"Invalid user credentials"是可靠的.也就是说,您输入了错误的用户名或密码.
检查用户是否确实存在于您要使用URL寻址的领域中.特别是如果不是 master 领域,通常将用于登录keycloak管理控制台.

The error message "Invalid user credentials" is reliable. That is, you either specified a wrong username or password.
Check that the user really exists in the realm you are addressing with the URL. Particularly if it is not the master realm which usually will be used to login to keycloak admin console.

这篇关于无法从Keycloak获取oauth令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆