From the course: ASP.NET: Security

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Authenticating in the app

Authenticating in the app

From the course: ASP.NET: Security

Start my 1-month free trial

Authenticating in the app

- [Instructor] Surprisingly we are almost done. In startup.cs, there we two things to add. First of all the UseCookieAuthentication call, where we basically say use cookies for authentication and then UseOPenIdConnectAuthentication, where we configure our web application to use identity server. This the is URL of identity server, so our web application slash identity. This is the ClientId, remember the same ID we set up in identity server, should be used here. These are the scopes we want, for now just the profile not any roads, we'll cover that later. Then the redirect URI, where to return to and that would like to have an id_token. So we essentially want to find out who the user is that just logged in. That's the major thing I had to do in order to make that work. There are a few more places where some extra work was required and will be required should you choose to continue using identity server, would like to rework the app so that it's working even better with identity server…

Contents