Skip Identity server login page for Azure AD(Auto login)

source: Medium

In this article, we will see how we can skip Identity server 4 login page if we have integrated Azure AD with identity server 4.

First let me explain the problem and then I will explain the solution for the same.

Problem:

We use Identity server 4 for authentication and we have integrated Azure AD with Identity server 4. Which means if the user provides the tenant Id of thier Azure then they can login with thier Azure credentials in our system.

Problem we faced is, everytime user had to enter email address in our indentity server’s login page and from there our system identifies if the user is Azure ad user or not, which adds one extra page which wanted to skip if the user is Azure AD to avoid filling loing page twice

Solution:

Solution is very simple. We can pass identity source provider as acr_values as explained here: http://docs.identityserver.io/en/latest/endpoints/authorize.html

Basically just concentrate on this part:

So if you have named Azure AD as identity source provider – aad then you just need to pass below values as acr_values

idp: aad

Here we have aad source provider used for AzureAD login.

Hope it helps.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s