IResourceOwnerPasswordValidator isn't being called? #1065
Comments
In which situation do you expect the resource owner validator to be called? |
Define "situation" ? Shouldn't this be called right when the user enters their username and password? |
Only if the client is collecting them and using resource owner password grant type. |
@brockallen @leastprivilege I have the same issue, but problem is with |
I added the 2.0.0 release nuget of IdentityServer4 into my solution manually and the validator was called afterwards. Now that the new VS version is released it should work as nuget as well but I did not test it so far. The previous nuget version did not work for me too. |
@Icad1 are you talking about preview version?
I'm using VS 2017 15.3, so I haven't any problems to install IdentityServer4 2.0.0-preview3 version with Package Manager. But I still have problem with breakpoint hitting. I asked question on stackoverflow but nobody tell me what I miss. |
I had the same problem. I created custom grant instead. In consolle Application you can use something like this: var discoveryClient = new DiscoveryClient("http://localhost:5000");
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Issue / Steps to reproduce the problem
Relevant parts of the log file
Using stackoverflow as a reference: http://stackoverflow.com/questions/35304038/identityserver4-register-userservice-and-get-users-from-database-in-asp-net-core/35306021
I'm really just trying to progress beyond the quickstart and implement my own user store, etc. From what little I can find around the net, it seems that I just need to implement
IProfileService
andIResourceOwnerPasswordValidator
. I've done so, but during login, all user/password combos just fail. I can't even get a breakpoint to be hit in theIResourceOwnerPasswordValidator
implementation. A couple questions: 1) Am I missing something? and 2) Is there somewhere in the docs where it shows a more practical setup for IdentityServer4 (using real user, claims, client, etc., providers?In Startup.cs
The implementations
Thanks
The text was updated successfully, but these errors were encountered: