O'Reilly logo

ASP.NET Web API Security Essentials by Rajesh Gunasundaram

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing Microsoft authentication

Microsoft authentication is like utilizing your end users' enterprise accounts to authenticate them. We need to create an application and configure redirect URL. Then copy the client ID and secret key from app settings in the Microsoft developer account and configure them in our application code.

Follow the given steps to get the client ID and secret key value from the Microsoft developer portal for your application:

Log to your Microsoft account (https://www.live.com/).

  1. Navigate to the Microsoft developer center site (https://account.live.com/developers/applications/).
  2. Provide the Application name and click the I accept button:

    Fig 29 – Enable your application to use Microsoft accounts

  3. Click on API Settings and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required