Reputation: 937
It's really strange question, but... So, does any pure internal IdentityServer4 analogues in ASP.NET Core exist? I have some Web Services via WebAPI. These services are strongly independent, but I want to restrict an access for part of it (I want to use JWTs). I want to have one certification authority for all my apis, which could use ASP.NET Core Identity, of course, and grants of denys an access for specific api. I don't want to use IdentityServer4 right now - maybe it's possible to solve this problem through an internal resourses of ASP.NET Core.
Thnxs.
Upvotes: 1
Views: 825
Reputation: 1415
Yes, ASP.NET Core provides out of the box tools for authentications and JWTs.
You will need to configure your Startup class and add the approperiate services/middlware.
Here's an article to get you started:
https://developer.okta.com/blog/2018/03/23/token-authentication-aspnetcore-complete-guide
If I'm not mistaken, IdentityServer actually wraps around these tools under the hood.
Upvotes: 3