Hi All,
Does anybody have any experience of building custom security providers? We've followed the guides to allow K2 to authenticate against an existing user repositry (ASP.NET MVC5 MS Identity based) and whilst we have a fairly solid, cusomizable and generic solution in place there is a specific bit of behaviour that we're seeing that we can't explain which surfaces when filtering users lists in the web client.
As a basic test, if we set some process rights in the K2 management app, when searching for users from this custom security provider we've noticed that the function:
IUserCollection FindUsers(string groupName, IDictionary<string, object> properties)
is called twice. The first time we see the filter properties being passed correctly and the filter terms correctly set, but immediatley after completion it's executed again but with no filter properties provided so returns a full un-filtered list of users!?
We've traced everything through our own code base and it's is not making the additional call, so all that I can assume is that the K2 Server is making it but I'm at a loss as to explain why? We have a workaround in place to allow filtering to be correct but I'd prefer to not need to include this if it's not needed.
I haven't shared this issue directly with k2 support as yet as I suspect due to the cusom nature of it, it's not a typically supported activity.
Can anyone from the community shed any light on this?
Thanks,
Paul.