SlideShare a Scribd company logo
CHALERMPON AREEPONG
Microsoft MVP ASP.NET
MVCRocks.NET Community and https://fb.com/groups/mvcthaidev Founder
DevRock #01 Hello New Year 2015
DevRock #01 Hello New Year 2015
CHALERMPON AREEPONG
Microsoft MVP – ASP.NET 9 Years
DevRock #01 Hello New Year 2015
 ASP.NET Web APIs
 The ways to secure your Web APIs.
 Web Security Scenarios
 Explain each scenarios
 demo
 How to
 Summaries
Basic Understanding ASP.NET WEB APIs
DevRock #01 Hello New Year 2015
DevRock #01 Hello New Year 2015
 Support HTTP Content-Types
 json, xml, plain text, …, custom
 Client can use HTTP to access the APIs
 HTTP Verbs to access resources
 GET, POST, PUT, DELETE, etc….
 Response HTTP Status Code
 20x, 30x, 40x, 50x
 Multiple Host Types
 IIS, WAS, Windows Service, Console, ..
 Extensible and Customizable
DevRock #01 Hello New Year 2015
DEMO
DevRock #01 Hello New Year 2015
 Web
 Mobile
 Device
 Application
 Any Client send HTTP Request
Basic Understanding Web Security
DevRock #01 Hello New Year 2015
DevRock #01 Hello New Year 2015
 Transport Layer Security
 HTTPs Protocol Encryption
 Untrusted (Anonymous)
 Trusted
DevRock #01 Hello New Year 2015
 Application Layer Security (1)
 Authentication
 Token-Based
 Two-Factors
 Intranet (IIS Windows)
 LDAP (Active Directory, OpenLDAP)
 OAuth, OpenID
 Identity Services ( Azure AD Service)
DevRock #01 Hello New Year 2015
 Application Layer Security (2)
 Authorization
 Role Based
 Claims Based
 …..
DevRock #01 Hello New Year 2015
 Application Layer Security (3)
 Data Encryption
 Encryption Algorithms
ASP.NET Web APIs architecture
DevRock #01 Hello New Year 2015
DevRock #01 Hello New Year 2015
HOST
OWIN
Web API
MessageHandler
global/per-route
Authentication
Filter
Authorization
Filter
Host/Framework
Independent concerns,
e.g. authentication
Web API cross-cutting
concerns, e.g. CORS
Web API specific
Authentication
internal app level
Authorization
DevRock #01 Hello New Year 2015
Web API
with OWIN Adpater
OWIN
ASP.NET
with OWIN Bridge
IIS
DevRock #01 Hello New Year 2015
Web API
with OWIN Adpater
OWIN
Process/Host
+OWIN Bridge
DevRock #01 Hello New Year 2015
Scalability of servers:
 Stateless
 Centralize user info
Loosely coupling
 No dependency Service
Mobile Friendly
 Just keep token for reuse in Native Mobile
app.
DevRock #01 Hello New Year 2015
Username / Password
Get token
DevRock #01 Hello New Year 2015
ASP.NET WEB API 2.0
 Self Provider
 External Provider
Web API authentication and authorization

More Related Content

PDF
Jwt Security
PDF
OAuth - Open API Authentication
PDF
Json web token
PPTX
Pentesting jwt
PDF
Modern API Security with JSON Web Tokens
PDF
JSON WEB TOKEN
PPTX
Introduction to REST - API
PPTX
Attacking thru HTTP Host header
Jwt Security
OAuth - Open API Authentication
Json web token
Pentesting jwt
Modern API Security with JSON Web Tokens
JSON WEB TOKEN
Introduction to REST - API
Attacking thru HTTP Host header

What's hot (20)

PPTX
Rest API Security
ODP
OAuth2 - Introduction
PPTX
Token Authentication in ASP.NET Core
PPTX
Waf bypassing Techniques
PDF
JSON Web Token
PDF
Introduction to JWT and How to integrate with Spring Security
PPTX
An Introduction to OAuth 2
PPTX
Json Web Token - JWT
PDF
OWASP API Security Top 10 - API World
PPTX
Introduction to HTTP protocol
PDF
JSON Web Tokens
PPT
Understanding REST
PDF
Implementing OAuth
PPTX
Building Secure User Interfaces With JWTs
PDF
Getting Started with FIDO2
PPT
OAuth 2.0 and OpenId Connect
PPTX
Introduction to PHP
PPTX
HTTP request and response
PDF
Bug Bounty Hunter Methodology - Nullcon 2016
PDF
Using JSON Web Tokens for REST Authentication
Rest API Security
OAuth2 - Introduction
Token Authentication in ASP.NET Core
Waf bypassing Techniques
JSON Web Token
Introduction to JWT and How to integrate with Spring Security
An Introduction to OAuth 2
Json Web Token - JWT
OWASP API Security Top 10 - API World
Introduction to HTTP protocol
JSON Web Tokens
Understanding REST
Implementing OAuth
Building Secure User Interfaces With JWTs
Getting Started with FIDO2
OAuth 2.0 and OpenId Connect
Introduction to PHP
HTTP request and response
Bug Bounty Hunter Methodology - Nullcon 2016
Using JSON Web Tokens for REST Authentication
Ad

Viewers also liked (20)

PPTX
Authentication, Authorization, and Identity – More than meets the eye…
PPTX
ZZ BC#8 Hello ASP.NET MVC 4 (dks)
PPTX
Scalable Resilient Web Services In .Net
PPTX
Iasi code camp 12 october 2013 corneliu rimboiu - bridging java and .net
PPTX
Performance in .net best practices
PPTX
Asp.net mvc security
PPTX
DDD Melbourne 2014 security in ASP.Net Web API 2
PPT
Smooth Sort
PDF
Design & Deploy a data-driven Web API in 2 hours
PDF
Secure RESTful Web Services for ASP.NET Web API
PPTX
End to End Security with MVC and Web API
PPTX
Building Scalable .NET Web Applications
PDF
Tips and Tricks For Faster Asp.NET and MVC Applications
PPTX
ASP.NET Core 1.0 Overview: Post-RC2
PPTX
Overview of the .Net Collection Framework and Immutable Collections
PDF
5. web api 2 aspdotnet-mvc5-slides
PPTX
ASP.NET Core MVC + Web API with Overview (Post RC2)
PPTX
Scaling asp.net websites to millions of users
PPTX
10 performance and scalability secrets of ASP.NET websites
PPTX
ASP.NET Mvc 4 web api
Authentication, Authorization, and Identity – More than meets the eye…
ZZ BC#8 Hello ASP.NET MVC 4 (dks)
Scalable Resilient Web Services In .Net
Iasi code camp 12 october 2013 corneliu rimboiu - bridging java and .net
Performance in .net best practices
Asp.net mvc security
DDD Melbourne 2014 security in ASP.Net Web API 2
Smooth Sort
Design & Deploy a data-driven Web API in 2 hours
Secure RESTful Web Services for ASP.NET Web API
End to End Security with MVC and Web API
Building Scalable .NET Web Applications
Tips and Tricks For Faster Asp.NET and MVC Applications
ASP.NET Core 1.0 Overview: Post-RC2
Overview of the .Net Collection Framework and Immutable Collections
5. web api 2 aspdotnet-mvc5-slides
ASP.NET Core MVC + Web API with Overview (Post RC2)
Scaling asp.net websites to millions of users
10 performance and scalability secrets of ASP.NET websites
ASP.NET Mvc 4 web api
Ad

Similar to Web API authentication and authorization (20)

PDF
Transforming organizations into platforms
PDF
APIsecure 2023 - Exploring Advanced API Security Techniques and Technologies,...
PDF
Designing Secure APIs
PDF
ASP.NET Web API Interview Questions By Scholarhat
PDF
Unleash the power of HTTP with ASP.NET Web API
PDF
Checkmarx meetup API Security - API Security top 10 - Erez Yalon
PDF
API, Integration, and SOA Convergence
PDF
API Security: the full story
PPTX
REST and ASP.NET Web API (Tunisia)
PDF
ASP NET Web API 2 Building a REST Service from Start to Finish 2nd Edition Ja...
PPTX
Trust No One: The New Security Model for Web APIs - SecTor talk by Greg Kliew...
PPTX
REST for .NET - Introduction to ASP.NET Web API
PPTX
Getting started with dotnet core Web APIs
PDF
RESTful Day 5
PPTX
REST API Design & Development
PPTX
Rest API Security - A quick understanding of Rest API Security
PPTX
Best Practices You Must Apply to Secure Your APIs - Scott Morrison, SVP & Dis...
PPTX
Web API or WCF - An Architectural Comparison
PDF
APIs for your Business + Stages of the API Lifecycle
PPTX
06 web api
Transforming organizations into platforms
APIsecure 2023 - Exploring Advanced API Security Techniques and Technologies,...
Designing Secure APIs
ASP.NET Web API Interview Questions By Scholarhat
Unleash the power of HTTP with ASP.NET Web API
Checkmarx meetup API Security - API Security top 10 - Erez Yalon
API, Integration, and SOA Convergence
API Security: the full story
REST and ASP.NET Web API (Tunisia)
ASP NET Web API 2 Building a REST Service from Start to Finish 2nd Edition Ja...
Trust No One: The New Security Model for Web APIs - SecTor talk by Greg Kliew...
REST for .NET - Introduction to ASP.NET Web API
Getting started with dotnet core Web APIs
RESTful Day 5
REST API Design & Development
Rest API Security - A quick understanding of Rest API Security
Best Practices You Must Apply to Secure Your APIs - Scott Morrison, SVP & Dis...
Web API or WCF - An Architectural Comparison
APIs for your Business + Stages of the API Lifecycle
06 web api

More from Chalermpon Areepong (9)

PPTX
DevRock #02 akka.net intro part
PDF
Build your website with angularjs and web apis
PPTX
Java script for web developer
PPTX
ASP.NET WEB API Training
PPTX
ZZ BC#7.5 asp.net mvc practice and guideline refresh!
PPTX
ZZ BC#7 asp.net mvc practice and guideline by NineMvp
PPTX
Build your web app with asp.net mvc 2 from scratch
PPTX
Gf vtzz-05--j queryshowcase
PPTX
DevRock #02 akka.net intro part
Build your website with angularjs and web apis
Java script for web developer
ASP.NET WEB API Training
ZZ BC#7.5 asp.net mvc practice and guideline refresh!
ZZ BC#7 asp.net mvc practice and guideline by NineMvp
Build your web app with asp.net mvc 2 from scratch
Gf vtzz-05--j queryshowcase

Recently uploaded (20)

PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Electronic commerce courselecture one. Pdf
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
A Presentation on Artificial Intelligence
PPTX
Spectroscopy.pptx food analysis technology
NewMind AI Weekly Chronicles - August'25-Week II
MYSQL Presentation for SQL database connectivity
Mobile App Security Testing_ A Comprehensive Guide.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
The Rise and Fall of 3GPP – Time for a Sabbatical?
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Empathic Computing: Creating Shared Understanding
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Network Security Unit 5.pdf for BCA BBA.
Building Integrated photovoltaic BIPV_UPV.pdf
Electronic commerce courselecture one. Pdf
sap open course for s4hana steps from ECC to s4
Assigned Numbers - 2025 - Bluetooth® Document
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Spectral efficient network and resource selection model in 5G networks
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Agricultural_Statistics_at_a_Glance_2022_0.pdf
A Presentation on Artificial Intelligence
Spectroscopy.pptx food analysis technology

Web API authentication and authorization

  • 1. CHALERMPON AREEPONG Microsoft MVP ASP.NET MVCRocks.NET Community and https://fb.com/groups/mvcthaidev Founder DevRock #01 Hello New Year 2015
  • 2. DevRock #01 Hello New Year 2015 CHALERMPON AREEPONG Microsoft MVP – ASP.NET 9 Years
  • 3. DevRock #01 Hello New Year 2015  ASP.NET Web APIs  The ways to secure your Web APIs.  Web Security Scenarios  Explain each scenarios  demo  How to  Summaries
  • 4. Basic Understanding ASP.NET WEB APIs DevRock #01 Hello New Year 2015
  • 5. DevRock #01 Hello New Year 2015  Support HTTP Content-Types  json, xml, plain text, …, custom  Client can use HTTP to access the APIs  HTTP Verbs to access resources  GET, POST, PUT, DELETE, etc….  Response HTTP Status Code  20x, 30x, 40x, 50x  Multiple Host Types  IIS, WAS, Windows Service, Console, ..  Extensible and Customizable
  • 6. DevRock #01 Hello New Year 2015 DEMO
  • 7. DevRock #01 Hello New Year 2015  Web  Mobile  Device  Application  Any Client send HTTP Request
  • 8. Basic Understanding Web Security DevRock #01 Hello New Year 2015
  • 9. DevRock #01 Hello New Year 2015  Transport Layer Security  HTTPs Protocol Encryption  Untrusted (Anonymous)  Trusted
  • 10. DevRock #01 Hello New Year 2015  Application Layer Security (1)  Authentication  Token-Based  Two-Factors  Intranet (IIS Windows)  LDAP (Active Directory, OpenLDAP)  OAuth, OpenID  Identity Services ( Azure AD Service)
  • 11. DevRock #01 Hello New Year 2015  Application Layer Security (2)  Authorization  Role Based  Claims Based  …..
  • 12. DevRock #01 Hello New Year 2015  Application Layer Security (3)  Data Encryption  Encryption Algorithms
  • 13. ASP.NET Web APIs architecture DevRock #01 Hello New Year 2015
  • 14. DevRock #01 Hello New Year 2015 HOST OWIN Web API MessageHandler global/per-route Authentication Filter Authorization Filter Host/Framework Independent concerns, e.g. authentication Web API cross-cutting concerns, e.g. CORS Web API specific Authentication internal app level Authorization
  • 15. DevRock #01 Hello New Year 2015 Web API with OWIN Adpater OWIN ASP.NET with OWIN Bridge IIS
  • 16. DevRock #01 Hello New Year 2015 Web API with OWIN Adpater OWIN Process/Host +OWIN Bridge
  • 17. DevRock #01 Hello New Year 2015 Scalability of servers:  Stateless  Centralize user info Loosely coupling  No dependency Service Mobile Friendly  Just keep token for reuse in Native Mobile app.
  • 18. DevRock #01 Hello New Year 2015 Username / Password Get token
  • 19. DevRock #01 Hello New Year 2015 ASP.NET WEB API 2.0  Self Provider  External Provider