ASP.NET Web API 2 – Web Services for Websites, Modern Apps, and Mobile Apps

Download this episode

Download Video

Description

ASP.NET Web API 2 makes it even easier to build HTTP services for any client application, including websites and mobile applications. In this session you will see how to easily setup your Web API routes using integrated attribute routing. You will learn how to secure your Web APIs using OAuth 2.0, integrate with Windows Azure Active Directory and easily enable support for cross-origin requests using CORS. We will then discover how you can write portable Web API client code for Windows Phone and Windows Store applications and also how we have simplified writing unit tests for your Web APIs. Finally, you will learn how to write OData services that support $expand, $select and request batching and how you can now host your Web APIs on any OWIN-based host.
For more information, check out these courses on Microsoft Virtual Academy:

Tags:

ASP.NET, Web API, REST

Day:

2

Level:

300

Session Type:

Breakout

Code:

3-504

Room:

North Hall: 135

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • User profile image
      Rob Gibbens

      Are there docs/examples of Oauth flow that you were showing? Specifically, authenticating on a mobile client (w/FB,Google,etc) and passing the token to a secured Web Api service?

      Also, can we secure only specific Web Api resources, or even Actions?

    • User profile image
      RBPotter
    • User profile image
      sureshballa

      I have a question, what if my rest service is separate project and i have clients like MVC, desktop based that needs to consume the REST service (which is protected with OAuth of external providers). How to i send the bearer tokens from .NET application or from MVC 4 client application? Are there any utilities APIs that i can use to to fetch and construct the bearer token as part of HTTP auth headers?

    • User profile image
      aadams

      Can we get the source code for the presentation?

       

      Also, I'd like to know the answer to what @sureshballa asked.

       

      Thanks!

    • User profile image
      VirtualVoid

      is he drunk ? i really hate his talking style...

    • User profile image
      nassim

      web service " REST or SOAP"?

    • User profile image
      Martin Andersen

      This is excellent documentation http://www.asp.net/web-api/overview/security/external-authentication-services#COMBINE well written.

      But I have to say that security is a tough topic and what I am missing right now is this.

      How can I build my own security server and how is the user registration flow when you are using a security server?

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.