Search code examples
asp.net-core-2.0identityserver4

Authentication/Authorization using Asp.net Core 2.1 and Identity Server 4


I'm trying to build up a test application to observe Identity Server 4. Here is my use case: 1 - I have an application named AuthServer which would be responsible for Register/Login, Reset Password etc users 2 - I also have another WebApi application named AppApi which has all the protected endpoints.

Users should Register/login through the AuthServer app and user their token to access the protected endpoints in AppApi.

User credentials and profile info along with their roles should be saved in db just like when identity core is being used.

I know this is a very general question, But I was wondering if anyone could point me in the right direction. All the resource I found were about authorizing clients (not users), or some scenarios that weren't helpful.

Thank you in advance.


Solution

  • I would start with the IdentityServer4 samples here. They show you how to authenticate users and APIs, which sounds like is both your questions.