Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Identity and IdentityServer connection

Can somebody explain the connection between Identity and IdentityServer?

There was a recent article that says there will be a new version of IdentityServer (ie IdentityServer 4).

I'm doing a ASP.NET 5 project. I only heard of Identity 3 before and I'm planning to use it.

Can I use Identity 3 in my project without using this IdentityServer?

like image 897
raberana Avatar asked Feb 05 '16 08:02

raberana


People also ask

What is Identity server in asp net?

IdentityServer is an authentication server that implements OpenID Connect (OIDC) and OAuth 2.0 standards for ASP.NET Core. It's designed to provide a common way to authenticate requests to all of your applications, whether they're web, native, mobile, or API endpoints.

What is the difference between identity and identity server?

ASP.NET Identity is a user store/identity management library. It includes some OWIN helper classes to hook into the OWIN security middleware, but otherwise has nothing to do with authentication. IdentityServer is an OpenID Connect provider, that acts as a central authentication server for multiple applications.

Do I need IdentityServer4?

Why do we need IdentityServer4? ASP.NET Identity can receive a security token from a third-party login provider like Facebook, Google, Microsoft and Twitter. But If you want to issue a security token for a local ASP.NET Identity user you need to work with a third-party library like IdentityServer4, OpenIddict.

Does Identity server use cookies?

Cookie authentication IdentityServer registers two cookie handlers (one for the authentication session and one for temporary external cookies).


1 Answers

Can somebody explain the connection between Identity and IdentityServer?

There's no direct connection: ASP.NET Identity is a membership provider (i.e a way to manage your users) while IdentityServer is an OAuth2/OpenID Connect server you can use to support token authentication.

That said, IdentityServer4 will eventually support ASP.NET Identity 3 as a membership store.

Can I use Identity 3 in my project without using this IdentityServer?

Sure, you can use ASP.NET Identity without IdentityServer (and vice versa).

like image 109
Kévin Chalet Avatar answered Oct 28 '22 01:10

Kévin Chalet