How # (sharp) is Your Katana (Ciprian Jichici)

328 views

Published on



The Internet of Things is coming upon us bringing a whole range of fundamental changes in the way we imagine, understand, and write services. One of the major trends we’re wittnessing is the breakdown of monoliths, and Microsoft’s web stack is among the candidates. With the new .NET framework and standards like OWIN, the world of web development is changing significantly.

We’re going to cover in this session some advanced scenarios involving ASP.NET MVC 5, WebAPI 2, OWIN, Katana (Microsoft’s implementation of OWIN), and, of course, Windows Azure (Windows Azure Active Directory to be more specific). And to make things more real, we’re going to demonstrate everything using a solution used by our team at HTSS-Genisoft in real-life production.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
328
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

How # (sharp) is Your Katana (Ciprian Jichici)

  1. 1. Premium community conference on Microsoft technologies itcampro@ itcamp14# How # (sharp) is your Katana? Ciprian Jichici General Manager, Genisoft Chief Architect, High-Tech Systems & Software Microsoft Regional Director, Romania MVP, Microsoft Azure Roxana Goidaci Chief Architect, Genisoft
  2. 2. Premium community conference on Microsoft technologies itcampro@ itcamp14# Huge thanks to our sponsors & partners!
  3. 3. Premium community conference on Microsoft technologies itcampro@ itcamp14# We’re proud to be Platinum sponsors!
  4. 4. Premium community conference on Microsoft technologies itcampro@ itcamp14# A new world for web stacks A real-world business scenario #ening your Katana Security, security, security Agenda
  5. 5. Premium community conference on Microsoft technologies itcampro@ itcamp14# A NEW WORLD FOR WEB STACKS
  6. 6. Premium community conference on Microsoft technologies itcampro@ itcamp14# The Internet of Things is Here!
  7. 7. Premium community conference on Microsoft technologies itcampro@ itcamp14# OWIN Open Web Interface for .NET
  8. 8. Premium community conference on Microsoft technologies itcampro@ itcamp14# OWIN Func<IDictionary<string, object>, Task> Func<IDictionary<string, object>, Task>;
  9. 9. Premium community conference on Microsoft technologies itcampro@ itcamp14# The Role of OWIN
  10. 10. Premium community conference on Microsoft technologies itcampro@ itcamp14# KATANA
  11. 11. Premium community conference on Microsoft technologies itcampro@ itcamp14# Traditional Japanese sword Microsoft’s implementation of OWIN KATANA
  12. 12. Premium community conference on Microsoft technologies itcampro@ itcamp14# A REAL-WORLD BUSINESS SCENARIO
  13. 13. Premium community conference on Microsoft technologies itcampro@ itcamp14# The Sensiblu Mobile App Datacenter https://mobile.htss.ro/sensiblu
  14. 14. Premium community conference on Microsoft technologies itcampro@ itcamp14# Service Availability is Critical Datacenter https://mobile.htss.ro/sensiblu Microsoft Azure REST endpoint tester
  15. 15. Premium community conference on Microsoft technologies itcampro@ itcamp14# The Architecture
  16. 16. Premium community conference on Microsoft technologies itcampro@ itcamp14# DEMO A “Simple” REST tester
  17. 17. Premium community conference on Microsoft technologies itcampro@ itcamp14# #ENING YOUR KATANA
  18. 18. Premium community conference on Microsoft technologies itcampro@ itcamp14# Portable – substitute components Modular/Flexible – small, focused components, giving great control over use Lightweight/Performant/Scalable – break the monolith, consume fewer resources, scale better The KATANA Project – High Level Goals
  19. 19. Premium community conference on Microsoft technologies itcampro@ itcamp14# Common wisdom says it has a direct dependency on the complexity of the solution Intermezzo – About Software Scalability
  20. 20. Premium community conference on Microsoft technologies itcampro@ itcamp14# So….. A piece of software that does absolutely nothing will scale infinitely - Scot Hanselman Intermezzo – About Software Scalability
  21. 21. Premium community conference on Microsoft technologies itcampro@ itcamp14# IAppBuilder is the core concept Enables the chaining of middleware components The KATANA Project
  22. 22. Premium community conference on Microsoft technologies itcampro@ itcamp14# The KATANA Project
  23. 23. Premium community conference on Microsoft technologies itcampro@ itcamp14# Use an Azure Worker Role Use Web API for the management endpoint Use a lightweight web stack based on OWIN / KATANA Use Windows Azure Active Directory for authentication Our Technical Approach
  24. 24. Premium community conference on Microsoft technologies itcampro@ itcamp14# DEMO Bootstrapping KATANA in an Azure Worker Role
  25. 25. Premium community conference on Microsoft technologies itcampro@ itcamp14# SECURITY, SECURITY, SECURITY
  26. 26. Premium community conference on Microsoft technologies itcampro@ itcamp14# Our problem: The management endpoint cannot be called by anyone Secure, but how?
  27. 27. Premium community conference on Microsoft technologies itcampro@ itcamp14# KATANA makes it all “simple”: 1. Register your service with WAAD 2. Call UseWindowsAzureActiveDirectoryBearerAuthentication when bootstrapping Believe it or not, that’s all you need to do  Windows Azure Active Directory @ work
  28. 28. Premium community conference on Microsoft technologies itcampro@ itcamp14# But… There a LOT going on behind the scenes… Windows Azure Active Directory @ work
  29. 29. Premium community conference on Microsoft technologies itcampro@ itcamp14# We use the Bearer token approach - No need to prove possession of a cryptographic key - Protect in storage and transport (that’s why we need HTTPS) The Rich Client Story
  30. 30. Premium community conference on Microsoft technologies itcampro@ itcamp14# DEMO Implementing a secure Web API endpoint with KATANA and WAAD
  31. 31. Premium community conference on Microsoft technologies itcampro@ itcamp14# We needed a small, flexible, and secure web stack in an Azure worker role We used OWIN / KATANA integrated with Windows Azure Active Directory Our solution demonstrates how the new modular web stack of the future works in a real, cloud- based scenario In an nutshell…
  32. 32. Premium community conference on Microsoft technologies itcampro@ itcamp14# Q & A

×