gpt4 book ai didi

Keycloak add user from custom user provider(密钥罩从自定义用户提供程序添加用户)

转载 作者:bug小助手 更新时间:2023-10-25 17:29:55 25 4
gpt4 key购买 nike



I'm creating a custom user storage using the User storage SPI

我正在使用用户存储SPI创建自定义用户存储


My problem here is that that addUser function is not called.
When i try to add a user, the function getUserByNickName is directly called but do not find any user.

我这里的问题是addUser函数没有被调用。当我尝试添加用户时,函数getUserByNickName被直接调用,但没有找到任何用户。


更多回答

Same problem here.

这里也有同样的问题。

优秀答案推荐

I had the same problem.

我也有同样的问题。


The solution for me was that the getUserByUsername had to throw an error for addUser to be called. So in my case if I returned a 404 from my API if user is not found then addUser was called.

对我来说,解决方案是getUserByNode必须抛出一个错误,以便调用addUser。所以在我的例子中,如果我从我的API返回一个404,如果没有找到用户,那么addUser被调用。


更多回答

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com