IdentityServer VS ASP.NET Core

Compare IdentityServer vs ASP.NET Core and see what are their differences.

IdentityServer

The most flexible and standards-compliant OpenID Connect and OAuth 2.x framework for ASP.NET Core (by DuendeSoftware)

ASP.NET Core

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux. (by dotnet)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
IdentityServer ASP.NET Core
16 1,633
1,341 34,357
2.5% 0.4%
9.4 9.9
1 day ago 6 days ago
JavaScript C#
DUENDE™ SOFTWARE LICENSE AGREEMENT MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

IdentityServer

Posts with mentions or reviews of IdentityServer. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-25.
  • Identity server 4
    1 project | /r/dotnet | 11 Dec 2023
    Its deprecated in favor of Duende Identityserver which introduced a license model.
  • How does cookie based authentication work?
    1 project | /r/dotnetcore | 4 Nov 2022
    Tokens usually have a lifetime and they are separate from the user's authentication principals like username and password. Unless you are rolling your own form of token provider (not something that would be recommended) the token creation is handled for you. Take a look at https://identityserver4.readthedocs.io/en/latest/ or if your organization makes under 1M in income a year the free version of what Identity Server progressed into https://duendesoftware.com/products/identityserver
  • Ask HN: Examples of Top C# Code?
    29 projects | news.ycombinator.com | 25 Oct 2022
  • ImageSharp leaving the .NET Foundation due to licensing change
    8 projects | news.ycombinator.com | 22 Oct 2022
    I think Duende (Identity Server) handled the situation pretty well.

    https://duendesoftware.com/products/identityserver

    > Standard License Pricing

  • Seeking people for collaboration on open source projects I started. Also open to ideas. Preferably long-term. I can help you learn and you can help me with other things, such as coding, UI and more. Beginner friendly. Safe environment.
    2 projects | /r/ProgrammingBuddies | 16 Oct 2022
    Thanks for your message. No, the idea was not to re-implement OAuth nor OpenID stuff. What I had in mind for the authentication thingy was something like this: https://laravel.com/docs/9.x/sanctum. If we want to go the OAuth/OpenID way, in .NET we have this one: https://github.com/DuendeSoftware/IdentityServer.
  • If you were tasked with implementing Identity and Access Management today, what would you do?
    2 projects | /r/dotnet | 3 Oct 2022
  • Bytebase: 20-Person Startup, 30 SaaS Services, and $1,183 Monthly Bill
    5 projects | news.ycombinator.com | 26 Sep 2022
    > As you said, there are plenty of local options that you only need to run.

    I think managed databases are a good analogy here. While I might run my own PostgreSQL/MariaDB instance, many out there won't be overjoyed at the idea of actually needing to run and manage the damned thing, as well as set up some kind of alerting and handling the need to eventually scale it up.

    > It also has the largest risk of compromise and data leaking from any service you may use...

    PII is definitely a big concern, even if something like password hashes aren't too useful on their own (provided that they're salted), though in cases like that it might actually make a lot of sense to utilize a widely used and tested solution that's specialized for this particular use case.

    In many cases, thousands of people across the globe will be able to develop something and squash any bugs in it better than you might be able to do individually or with your own team, though there might be a few exceptions out there. Auth is probably not one of the cases where you want to write code without a lot of eyes on it.

    > ...the largest amount of potential lock-in...

    This is debatable: standards like OAuth2 and OIDC technically make many of the solutions and libraries way more pluggable and make it easier to choose between various implementations, depending on your needs.

    Of course, something like Keycloak also has its own API (as do many of the cloud offerings) so if you build too much automation around a particular implementation, then that advantage partially goes out the window.

    > ...and the least need for integration.

    I'm not sure about this, it probably depends on your architecture. If you have a monolithic web app, then you probably don't need a separate turnkey/SaaS solution, whereas if you have an ever growing number of services, whilst you want to manage authentication and accounts against all of them centrally, then something like Keycloak (or one of the cloud alternatives) become way more lucrative.

    That said, I'd still opt for self-hostable options whenever possible, albeit I also don't trust cloud based password managers and such, preferring something like KeePass instead. I've probably just come to a different conclusion in regards to usability/responsibility/features/security than some other people.

    Sadly, there aren't that many good options out there at the moment, apart from Keycloak. For example, IdentityServer is promising, but went in a commercial direction: https://duendesoftware.com/products/identityserver#pricing

  • Why is authentication such a sh*t show with .NET 6?
    3 projects | /r/dotnet | 11 Jun 2022
    He's referring to IdentityServer 3/4, which was open sourced, and was not owned by Microsoft. That 3rd party is commercializing their work (and to be fair, it's a lot of work) as https://duendesoftware.com/products/identityserver , and has a different commercial licensing model.
  • Show HN: Open-Source Identity Server Written in Go (Ory Kratos)
    9 projects | news.ycombinator.com | 9 Jun 2022
    https://github.com/DuendeSoftware/IdentityServer/blob/main/L... does not seem to square with any definition of "open source" I'm familiar with, and that goes double for having an in-repo file that just says "read this unversioned pdf on some other site"
  • Creating JWT token auth yourself - is it secure?
    2 projects | /r/csharp | 18 Jan 2022
    I would not recommend it. There is a server named Duende identity server which you can host locally.

ASP.NET Core

Posts with mentions or reviews of ASP.NET Core. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-30.
  • Asynchronous Programming in C#
    9 projects | news.ycombinator.com | 30 Apr 2024
    > Just .GetAwaiter().GetResult() it.

    That won’t work with various synchronization contexts, where doing this would cause a deadlock. There’s not much fun in trying to debug such issues.

    And now that various libraries only provide async api, or worse an non-async version wrapping the async one with . GetAwaiter().GetResult(), you’ll be in for a treat updating your dependencies.

    Async all the way is the answer, although various frameworks still don’t offer async hooks. Recently I ran into this for example trying to write an async validator in blazor, but that’s not possible and you have to work around it [1].

    C# 5 introduced async/await almost 12 years ago. And we’re still not “async all the way”.

    [1]: https://github.com/dotnet/aspnetcore/issues/40244

  • Middleware in .NET 8
    1 project | dev.to | 18 Apr 2024
    This approach to organizing middleware enhances code readability, maintainability, and reusability. By following this encapsulation pattern, you're adhering to best practices in ASP.NET Core development, ensuring your application remains well-organized and scalable.
  • .NET Monthly Roundup - March 2024 - .NET 9 Preview 2, Smart Components, AI fun, and more!
    2 projects | dev.to | 9 Apr 2024
    🌟.NET 9 Preview 2 ➡️.NET 9 Preview 2 Discussion ➡️ASP.NET Core updates in .NET 9 Preview 2 ➡️ASP.NET Core updates in .NET 9 Preview 2 Release Notes ➡️EF Core updates in .NET 9 Preview 2 ➡️.NET Aspire preview 4 - .NET Aspire
  • Chrome Feature: ZSTD Content-Encoding
    10 projects | news.ycombinator.com | 1 Apr 2024
    https://github.com/dotnet/aspnetcore/issues/50643
  • The Mechanics of Silicon Valley Pump and Dump Schemes
    8 projects | dev.to | 18 Feb 2024
    Even if you look at Microsoft’s by far most popular GitHub project, they’re still only half as big as SupaBase. If you believe “the SupaBase story”, SupaBase grew and became twice as large as Microsoft in 3 years. Below is their likes over time if you’re curious, together with a couple of additional “too good to be true” Silicon Valley projects.
  • Bug Thread
    1 project | news.ycombinator.com | 16 Jan 2024
    https://github.com/dotnet/aspnetcore/issues/10117
  • Evolutive and robust password hashing using PBKDF2 in .NET
    3 projects | dev.to | 26 Dec 2023
    To achieve these objectives, we will take inspiration from ASP.NET Core Identity's PasswordHasher class. It incorporates a concept of hash versioning, allowing only the number of iterations to be modified.
  • Experimenting with .NET 8 Blazor Web App w/ the Blazor Server rendering mode enabled but I can't get any my events to fire.
    1 project | /r/Blazor | 10 Dec 2023
  • Observable or promise for http call from ASP.Net
    1 project | /r/angular | 10 Dec 2023
    yes I watched several courses, may be aim not getting clearly. but i worked with asp.net which uses http call and firebase cloud function also which uses socket connection, for socket connection its makes sense to use observable bcoz there streams of data we can observe once the connection establish ,but for http it need to be call every time.
  • Como conseguir mi primer laburo
    1 project | /r/devsarg | 10 Dec 2023

What are some alternatives?

When comparing IdentityServer and ASP.NET Core you can also consider the following projects:

Keycloak - Open Source Identity and Access Management For Modern Applications and Services

Blazor.WebRTC

openiddict-core - Flexible and versatile OAuth 2.0/OpenID Connect stack for .NET

Introducing .NET Multi-platform App UI (MAUI) - .NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.

Ory Hydra - OpenID Certified™ OpenID Connect and OAuth Provider written in Go - cloud native, security-first, open source API security for your infrastructure. SDKs for any language. Works with Hardware Security Modules. Compatible with MITREid.

deno - A modern runtime for JavaScript and TypeScript.

node-oidc-provider - OpenID Certified™ OAuth 2.0 Authorization Server implementation for Node.js

inertia-laravel - The Laravel adapter for Inertia.js.

YARP - A toolkit for developing high-performance HTTP reverse proxy applications.

PuppeteerSharp - Headless Chrome .NET API

Hot Chocolate - Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.

CefSharp - .NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework