由于我开始尝试并实现应用程序启动的操作,--一种本来可以正常工作的密钥披风服务器--让我头疼。
先验搜索
因为寻找这个主题会导致很少的手工材料选择,所以我必须阅读友邦保险设计文件,特别是flows部分。
环境
我试过的
根据设计文档(这是谷歌集团的一个条目,据说它的功能“基本上是按照设计完成的”),应该将流构造为
../realms/myrealm/protocol/openid-connect/auth
?response_type=code
&client_id=myclient
&redirect_uri=https://myclient.com
&kc_action=update_profile它在我的模板引擎中生成了以下代码:
`${keycloak.config.realmUrl}/protocol/openid-connect/auth?response_type=code&client_id=${keycloak.config.clientId}&redirect_uri=${new URLSearchParams("http://localhost:3000/account").toString()}&kc_action=update_profile`(pug variable) keycloak.config使用keycloak.getConfig()填充,其中keycloak是keycloak-connect实例。
模板引擎正确地将变量替换为导致我的keycloak实例的链接,在该链接中,我收到(相当于德语的)此错误消息:
Unexpected error when handling authentication request to identity provider(德语:
Unerwarteter Fehler während der Bearbeitung der Anfrage an den Identity Provider.)
没有配置其他身份提供程序。
问题
如果设计文档中描述的方式导致此错误,如何正确地调用我的密钥披风以启动友邦保险?
发布于 2021-12-01 09:03:15
经过我自己的研究,我现在开始工作了。错误消息似乎具有误导性,因为我没有在该实例上配置另一个身份提供程序。
预计kc_action参数将处于所有大写中。所以
`${keycloak.config.realmUrl}/protocol/openid-connect/auth?response_type=code&client_id=${keycloak.config.clientId}&redirect_uri=${new URLSearchParams("http://localhost:3000/account").toString()}&kc_action=update_profile`应该是
`${keycloak.config.realmUrl}/protocol/openid-connect/auth?response_type=code&client_id=${keycloak.config.clientId}&redirect_uri=${new URLSearchParams("http://localhost:3000/account").toString()}&kc_action=UPDATE_PROFILE`这需要为人们找到一个文档,因为我没有看到它在"docs“中明确提到过。
https://stackoverflow.com/questions/70166381
复制相似问题