Using secure WebAPI services from a JavaScript SPA

Don Wibier
January 04, 2016

Using secure WebAPI services from a JavaScript SPA

In this session, I will walk you through the process of setting up a WebAPI service and how to secure it by using MS Identity and the OWIN middleware.

I will also show the steps involved on how to get authenticated and create a JavaScript single page application including authentication to access the Web API service, and get its data in return.

Don Wibier

January 04, 2016

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

22 slides
  1. Using a Secure WebAPI Web Service from a mobile app

    Don Wibier Technical Evangelist
  2. Define Using WebAPI wikipedia.org A web API is a subset

    of an application programming interface (API)
  3. How to secure… Using WebAPI 1. Decorating the WebAPI Controller

    • Use the [Authorize(..)] attribute 2. Decorating individual Action Methods • Exclusions on Controller attributes ([OverrideAuthentication(..)], [AllowAnonymous]) • Individual methods to be secure ([Authorize(..)])
  4. Application/Client types Using WebAPI Same-Domain • Web APIs and clients

    live in the same domain • all security settings inherited from web host Cross-Domain • Web APIs and clients live in different domains • native apps (desktop, mobile) • client side JavaScript code (browser) • Web API specific security settings @leastprivelege

Other Decks in Technology