4 June, 2021, 6:06 am

Getting started with Identity Server4 — Chapter 1

2 min read

Identity server concept

According to the definition of Microsoft, IdentityServer is an authentication server which implements OpenID Connect (OIDC) and OAuth 2.0 framework for ASP.NET Core. This is an open source framework which provides a common approach to authenticate the users when use the clients to access the data. Therefore, this single entity can be used to protect both clients and API resources. When using the identity server, what is simply happening is when a user needs to access to the data, the client is requesting an access token which can be used as a permission that allows to access to the API responses.

API Responses

The above picture can be used to explain the process in detail.

1. To access to the resources first, users have to use the clients which are the places that calls to the Identity Server.

2. Then clients request tokens from the identity server either to authenticate the users via identity tokens (contain all the identity data of users) or to grant the access to the resources via access tokens (contains all the information about client and user).

3. Once the token has received by the client, it will call the API with the token in resources.

4. Then the resources send a request to the Identity server to validate the token.

5. Once they receive the token validation results, the API will return the data to the clients.

6. Finally, users will have the access to the resources data through the clients.

Benefits and features of IdentityServer

By using the IdentityServer, we can avoid duplicating the fundamental security functionalities across the application and its endpoints. Also, this can be used as a centralized authentication server for multiple applications which is capable of managing and authenticating clients and users, issuing identity and access tokens to clients and validating them. Moreover, this provides session management, single sign-on option, and a gateway to third party identity providers like Facebook, Google, etc. At the end, this is an open source framework and we can implement all the above mentioned features without getting charged.

After getting familiar with the IdentityServer concept and its features, in the next chapter, we will discuss how to setup and configure IdentityServer4 with the fundamentals.

Thanks for reading!

Follow and clap for more industry trends news.

You may also like

enterprise software-blog
by Orvero Labs | 12 min read
6 key enterprise software development best practices

So, you want to build enterprise software for your business but you don’t know how? And it...

Read more
MVP development
by Orvero Labs | 15 min read
MVP development for startups: step-by-step guide

Creating a minimum viable product (MVP) is crucial for validating your idea and demonstrating its...

Read more
development vendor
by Orvero Labs | 9 min read
How to choose the right software development vendor

Entering into software development presents a significant opportunity for your business. However, it’s crucial to...

Read more