SlideShare a Scribd company logo
Isabelle 
Mauny 
VP, 
Product, 
WSO2 
Last Updated: Nov 2014 
Lessons 
from 
the 
ba.lefield 
Tuesday, December 9, 14
2 
About 
the 
speaker... 
๏ French 
na)ve 
๏ Living 
in 
Madrid 
๏ Working 
mostly 
in 
Sri 
Lanka 
and 
Europe 
๏ 17 
years 
@ 
IBM, 
5 
years 
in 
startups 
๏ Managing 
the 
overall 
WSO2 
porEolio 
๏ Linux 
command 
line 
user... 
Tuesday, December 9, 14
3 
Who 
is 
WSO2 
? 
๏ Open 
Source 
Middleware 
Pla2orm 
Provider 
๏ Apache 
2.0 
License 
๏ Provides 
Integra?on, 
API 
Management, 
Security 
and 
Mobile 
enterprise 
management 
products 
๏ Main 
contributor 
to 
Apache 
Stratos 
PaaS 
๏ Creators 
of 
DevOps 
“AppFactory” 
cloud 
solu?on 
Tuesday, December 9, 14
4 
Tuesday, December 9, 14
Architecture 
Roadmap 
5 
Decompose 
your 
exis7ng 
business 
processes, 
data 
and 
capabili7es 
into 
services 
Make 
all 
services 
accessible 
via 
APIs, 
externally 
and 
internally 
Put 
services 
and 
APIs 
under 
control 
! 
Build 
an 
ecosystem 
around 
your 
APIs 
Collect 
data 
on 
your 
new 
products 
and 
APIs 
1 
2 
3 
4 
5 
Tuesday, December 9, 14
6 
Crea%ng 
and 
Managing 
Services 
Tuesday, December 9, 14
7 
Services 
and 
APIs 
๏ Service 
deals 
with 
implementa)on 
๏ API 
deals 
with 
subscrip)on 
(consumer) 
๏ Two 
very 
dis)nct 
life 
cycles 
! 
๏ You 
don’t 
need 
the 
service 
to 
create 
the 
API... 
Tuesday, December 9, 14
8 
API 
Lifecycle 
๏ An 
API 
can 
pass 
through 
mul)ple 
states 
๏ For 
example: 
๏ CREATED 
๏ PUBLISHED 
๏ DEPRECATED 
๏ RETIRED 
๏ BLOCKED 
๏ Should 
integrate 
with 
complete 
governance 
lifecycle 
Tuesday, December 9, 14
9 
Building 
a 
Managed 
API 
๏ Crea)ng 
APIs 
(interface, 
docs, 
samples,etc.) 
๏ Adver)sing 
APIs 
๏ Making 
APIs 
subscribe-­‐able 
by 
consumers 
๏ Associa)ng 
SLAs 
๏ Securing 
APIs 
๏ Mone)za)on 
and 
Analy)cs 
Tuesday, December 9, 14
10 
API 
Security 
Tuesday, December 9, 14
11 
API 
Security 
๏ Security 
is 
not 
an 
aer 
thought 
! 
๏ APIs 
are 
part 
of 
a 
much 
larger 
enterprise 
picture 
๏ How 
will 
consumers 
request 
an 
access 
token 
? 
๏ Using 
a 
SAML 
2.0 
asser)on 
? 
๏ Using 
client_creden)als 
? 
๏ Using 
userid/password 
? 
๏ Make 
sure 
you 
document 
thoroughly 
how 
developers 
need 
to 
manage 
tokens: 
๏ Tokens 
are 
like 
passwords! 
๏ Always 
use 
SSL 
for 
token 
transporta)on 
! 
๏ Use 
Domain 
restric)ons 
(WSO2 
API 
Manager) 
Tuesday, December 9, 14
12 
Fine-­‐grained 
access 
to 
APIs 
๏ OAuth2 
is 
all 
about 
access 
control: 
a 
token 
is 
associated 
to 
a 
scope. 
๏ XACML 
(eXtensible 
Access 
Control 
Markup 
Language) 
is 
the 
de-­‐facto 
standard 
for 
fine-­‐grained 
access 
control. 
๏ OAuth 
scope 
can 
be 
represented 
in 
XACML 
policies 
๏ Provides 
fine 
grain 
control 
over 
what 
a 
user/applica?on 
can 
do 
( 
i.e. 
you 
can 
call 
GET 
but 
not 
POST 
on 
an 
API) 
Tuesday, December 9, 14
13 
Passing 
Auth 
Informa:on 
to 
back-­‐end 
services 
๏ Using 
JSON 
Web 
Tokens 
(JWT) 
๏ Lightweight 
๏ Can 
be 
signed 
๏ Easy 
to 
parse 
and 
consume 
๏ Standard 
Tuesday, December 9, 14
14 
Token 
Format 
๏ JWT 
Structure 
{token 
info}.{claims 
list}.{signature} 
๏ Base-­‐64 
Encoded 
Tuesday, December 9, 14
15 
What 
are 
Claims 
? 
๏ Claims 
are 
a 
set 
of 
ahributes 
about 
a 
user, 
mapped 
to 
the 
underlying 
user 
store. 
๏ A 
set 
of 
claims 
is 
called 
a 
dialect 
Tuesday, December 9, 14
16 
Deployment 
Tuesday, December 9, 14
17 
Gateway 
vs. 
ESB 
๏ Oh, 
but 
I 
already 
have 
an 
ESB 
! 
Why 
do 
I 
need 
a 
gateway 
? 
๏ API 
Gateway 
vs. 
Media)on 
Layer 
(ESB) 
๏ Gateway 
= 
light 
ESB 
? 
๏ Think 
ESB 
as 
an 
architecture 
pahern, 
not 
a 
product! 
Tuesday, December 9, 14
18 
Generic 
Facade 
Pa.ern 
๏ Pros 
๏ No 
addi)onal 
hop 
in 
the 
network 
๏ Single 
Server 
to 
be 
managed 
๏ More 
suited 
for 
internal 
deployments 
๏ Cons 
๏ Complexity 
of 
integra)on 
at 
edge 
of 
network 
๏ API 
Management 
layer 
can’t 
really 
scale 
independently 
๏ Not 
appropriate 
for 
DMZ 
deployments 
(direct 
access 
to 
backend 
services) 
Tuesday, December 9, 14
19 
Separated 
Facade 
& 
MediaWon 
๏ API 
Gateway 
Layer 
acts 
as 
simple 
reverse 
proxy, 
enforcing 
basic 
policies 
๏ Clear 
separa?on 
of 
concern 
between 
layers 
๏ Media?on 
layer 
and 
API 
management 
layer 
scale 
independently 
๏ Specific 
security 
checks/protec?on 
at 
edge 
of 
the 
network 
๏ Provides 
protocol 
transforma?on 
to 
the 
edge 
of 
the 
network 
Tuesday, December 9, 14
20 
Specific 
WSO2 
SoluWon 
๏ Our 
API 
gateway 
is 
actually 
a 
full-­‐blown 
ESB 
under 
the 
hood, 
constrained 
at 
UI 
level. 
๏ You 
can 
install 
the 
missing 
ESB 
features 
on 
top 
of 
API 
manager 
and 
combine 
both 
architecture 
layers 
into 
a 
single 
run)me! 
๏ Makes 
the 
choice 
a 
deployment 
one. 
Tuesday, December 9, 14
21 
Typical 
Deployment 
Tuesday, December 9, 14
22 
Users 
Store 
๏ Separate 
admins 
/ 
corporate 
users 
from 
the 
developers 
users’s 
store 
(created 
via 
self-­‐sign 
up) 
Tuesday, December 9, 14
23 
You 
can’t 
manage 
what 
you 
can’t 
measure. 
Tuesday, December 9, 14
24 
Why 
Analy:cs 
and 
API 
Management 
are 
important 
together? 
๏ Build 
confidence 
in 
the 
API 
model 
๏ Understand 
your 
customer 
๏ Not 
just 
the 
developer 
but 
also 
the 
end-­‐user 
๏ Help 
manage 
services 
and 
versions 
๏ Understand 
when 
deprecated 
services 
can 
be 
re?red 
๏ Plan 
beZer 
๏ Monitor 
the 
growth 
of 
aggregated 
API 
traffic 
๏ Monitor 
the 
growth 
of 
specific 
apps 
๏ Even 
if 
you’re 
not 
going 
to 
put 
analy?cs 
in 
place, 
make 
sure 
you 
capture 
all 
events 
right 
from 
beginning 
of 
project. 
Tuesday, December 9, 14
25 
AnalyWcs 
101: 
AggregaWon 
• How 
to 
collect 
data 
efficiently 
• How 
to 
store 
data 
effec)vely 
• Choose 
which 
data 
to 
capture 
Tuesday, December 9, 14
26 
AnalyWcs 
101 
: 
Analysis 
• Data 
opera)ons 
• Defining 
KPIs 
and 
analy)cs 
• Opera)ng 
on 
large 
amounts 
of 
historical 
or 
current 
data 
• Crea)ng 
intelligence 
Tuesday, December 9, 14
27 
AnalyWcs 
101 
: 
PresentaWon 
• Visualiza)on 
• Dashboards 
• Reports 
Tuesday, December 9, 14
28 
Monitor 
And 
Analyze 
๏ Take 
decisions 
in 
real 
?me 
through 
Complex 
Event 
Processing 
๏ Create 
dashboards 
for 
both 
technical 
and 
business 
monitoring 
Tuesday, December 9, 14
29 
DetecWng 
Usage 
Pa.erns 
๏ My 
API 
customer 
is 
trying 
to 
steal 
my 
business 
: 
let’s 
block 
them. 
๏ A 
customer 
is 
at 
80% 
of 
API 
plan 
: 
let’s 
warn 
them 
๏ A 
customer 
is 
systema)cally 
at 
120% 
of 
the 
plan 
: 
propose 
an 
upgrade 
to 
the 
premium 
plan 
Tuesday, December 9, 14
30 
Demo 
Tuesday, December 9, 14
31 
Demo 
Setup 
Tuesday, December 9, 14
32 
References 
๏ Building 
an 
ecosystem 
for 
API 
Security 
(White 
Paper) 
๏ hhp://wso2.com/whitepapers/wso2-­‐whitepaper-­‐building-­‐an-­‐ecosystem-­‐for-­‐api-­‐ 
security/ 
๏ API 
Facade 
Pahern 
(Webinar) 
๏ hhp://wso2.com/library/webinars/2014/01/implemen)ng-­‐api-­‐facade-­‐using-­‐ 
wso2-­‐api-­‐management-­‐plaEorm/ 
๏ API 
Management: 
missing 
link 
for 
SOA 
๏ hhp://sanjiva.weerawarana.org/2012/08/api-­‐management-­‐missing-­‐link-­‐for-­‐ 
soa.html 
๏ Promo)ng 
Service 
Reuse 
๏ hhp://wso2.com/whitepapers/promo)ng-­‐service-­‐reuse-­‐within-­‐your-­‐enterprise-­‐ 
and-­‐maximizing-­‐soa-­‐success/ 
Tuesday, December 9, 14
33 
Download 
API 
Manager 
today! 
๏ hhp://wso2.com/products/api-­‐manager/ 
Tuesday, December 9, 14
Contact 
us 
! 
Tuesday, December 9, 14

More Related Content

PPTX
Service Launch - Nuage X as a SaaS platform for demos, integrations and sales
PDF
Glass Fish Esb Launch Feb10 2009 Part A Frank K
PDF
Connectors for the New Enterprise with WSO2 ESB 4.8
PDF
Cloud Service Integration with WSO2 Developer Studio and WSO2 ESB
PPTX
Object Store
PDF
A Day in the Life of a Cross-platform, DevOps-enabled Team
PDF
OpenStack et Windows
PDF
Introduction to Weex: Mobile Apps with VueJS
Service Launch - Nuage X as a SaaS platform for demos, integrations and sales
Glass Fish Esb Launch Feb10 2009 Part A Frank K
Connectors for the New Enterprise with WSO2 ESB 4.8
Cloud Service Integration with WSO2 Developer Studio and WSO2 ESB
Object Store
A Day in the Life of a Cross-platform, DevOps-enabled Team
OpenStack et Windows
Introduction to Weex: Mobile Apps with VueJS

What's hot (20)

PDF
Full-Stack JavaScript Development on SAP HANA Platform
PPTX
Presentation - Nuage Networks Partner Program Update 9/2016
PDF
API Webinar November 18th 2014
PPTX
Criando sua primeira App Service no Azure
PDF
Top Node.JS Frameworks to Look at in 2020
PPTX
BootsFaces, AngularFaces und ein Blck unter die Motorhaube
PDF
Azure Management Basics
PDF
Load & Performance TESTING
PDF
Chris Wilson @ FOWA Feb 07
PDF
Micro frontends with react and redux dev day
PPTX
WebRTC & Asterisk 11
PDF
Continuous Lifecycle: Enhance Your Compliance and Governance With Policy-Base...
PPTX
Scaling with Docker: New Relic’s Containerization Journey
PPT
Sistema de Notificações com SignalR TDC 2014
PDF
Managing Composite Application in Apache Stratos
PPTX
"A REST kétszer fárad" (English)
ODP
Using PHP with IBM Bluemix
PDF
Daniel Appelquist @ FOWA Feb 07
PDF
Ivan Jovanovic - Micro Frontends - Codemotion Rome_2019
PDF
Putting The 'M' In MBaaS—Red Hat Mobile Client Development Platform (Jay Balu...
Full-Stack JavaScript Development on SAP HANA Platform
Presentation - Nuage Networks Partner Program Update 9/2016
API Webinar November 18th 2014
Criando sua primeira App Service no Azure
Top Node.JS Frameworks to Look at in 2020
BootsFaces, AngularFaces und ein Blck unter die Motorhaube
Azure Management Basics
Load & Performance TESTING
Chris Wilson @ FOWA Feb 07
Micro frontends with react and redux dev day
WebRTC & Asterisk 11
Continuous Lifecycle: Enhance Your Compliance and Governance With Policy-Base...
Scaling with Docker: New Relic’s Containerization Journey
Sistema de Notificações com SignalR TDC 2014
Managing Composite Application in Apache Stratos
"A REST kétszer fárad" (English)
Using PHP with IBM Bluemix
Daniel Appelquist @ FOWA Feb 07
Ivan Jovanovic - Micro Frontends - Codemotion Rome_2019
Putting The 'M' In MBaaS—Red Hat Mobile Client Development Platform (Jay Balu...
Ad

Viewers also liked (9)

PDF
Best Practices for API Management
PPT
Conociendo mule esb
PDF
Gestión de Identidades y Control de Acceso en los Servicios usando WSO2 Ident...
PDF
Bpel y Open Esb
PPTX
El mundo Big Data y las APIs
PPTX
WSO2 API Manager y ESB la plataforma perfecta para evolucionar los servicios
PPT
Introducción a SOA
PDF
Arquitectura Orientada a Servicios (SOA)
PPT
API Management architect presentation
Best Practices for API Management
Conociendo mule esb
Gestión de Identidades y Control de Acceso en los Servicios usando WSO2 Ident...
Bpel y Open Esb
El mundo Big Data y las APIs
WSO2 API Manager y ESB la plataforma perfecta para evolucionar los servicios
Introducción a SOA
Arquitectura Orientada a Servicios (SOA)
API Management architect presentation
Ad

Similar to Sharing Best Practices and Recommendations from the Integration Battlefield (20)

PDF
Lessons from the Trenches: Building an API-Centric Architecture
PDF
Implementing API-led Cloud-native apps on OCI
PDF
Cloud-Native .Net des applications containerisées .Net sur Linux, Windows e...
PDF
WSO2 Product Release webinar - WSO2 BAM 2.5
PDF
Building APIs in a Cloud Native Era
PDF
apidays LIVE Paris - Building APIs in a Cloud Native era by Nuwan Dias
PDF
Scalable deployment options in WSO2 API Manager
PDF
Tampere Docker meetup - Happy 5th Birthday Docker
PDF
Docker Birthday #5 Meetup Cluj - Presentation
PDF
Scaling DevSecOps Culture for Enterprise
PDF
Introducing The WSO2 Platform
PDF
Implementing API-led Cloud-native apps on OCI
PPTX
Monitor OpenStack Environments from the bottom up and front to back
PPT
Webinar combining WSO2 API Manager with WSO2 BAM for billing in the energy in...
PDF
Implementing API-led Cloud-native apps on OCI
PPTX
SplunkLive! London 2017 - DevOps Powered by Splunk
PPTX
Docker Bday #5, SF Edition: Introduction to Docker
PDF
Combining WSO2 API Manager with WSO2 BAM for billing in the energy industry
PPTX
Big Data, Analytics and Real Time Event Processing
PDF
Introduction to WSO2 Storage Server
Lessons from the Trenches: Building an API-Centric Architecture
Implementing API-led Cloud-native apps on OCI
Cloud-Native .Net des applications containerisées .Net sur Linux, Windows e...
WSO2 Product Release webinar - WSO2 BAM 2.5
Building APIs in a Cloud Native Era
apidays LIVE Paris - Building APIs in a Cloud Native era by Nuwan Dias
Scalable deployment options in WSO2 API Manager
Tampere Docker meetup - Happy 5th Birthday Docker
Docker Birthday #5 Meetup Cluj - Presentation
Scaling DevSecOps Culture for Enterprise
Introducing The WSO2 Platform
Implementing API-led Cloud-native apps on OCI
Monitor OpenStack Environments from the bottom up and front to back
Webinar combining WSO2 API Manager with WSO2 BAM for billing in the energy in...
Implementing API-led Cloud-native apps on OCI
SplunkLive! London 2017 - DevOps Powered by Splunk
Docker Bday #5, SF Edition: Introduction to Docker
Combining WSO2 API Manager with WSO2 BAM for billing in the energy industry
Big Data, Analytics and Real Time Event Processing
Introduction to WSO2 Storage Server

More from WSO2 (20)

PDF
Demystifying CMS-0057-F - Compliance Made Seamless with WSO2
PDF
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
PDF
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
PDF
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
PDF
Build Smarter, Deliver Faster with Choreo - An AI Native Internal Developer P...
PDF
Platformless Modernization with Choreo.pdf
PDF
Application Modernization with Choreo for the BFSI Sector
PDF
Choreo - The AI-Native Internal Developer Platform as a Service: Overview
PDF
[Roundtable] Choreo - The AI-Native Internal Developer Platform as a Service
PPTX
WSO2Con 2025 - Building AI Applications in the Enterprise (Part 1)
PPTX
WSO2Con 2025 - Building Secure Business Customer and Partner Experience (B2B)...
PPTX
WSO2Con 2025 - Building Secure Customer Experience Apps
PPTX
WSO2Con 2025 - AI-Driven API Design, Development, and Consumption with Enhanc...
PPTX
WSO2Con 2025 - AI-Driven API Design, Development, and Consumption with Enhanc...
PPTX
WSO2Con 2025 - Unified Management of Ingress and Egress Across Multiple API G...
PPTX
WSO2Con 2025 - How an Internal Developer Platform Lets Developers Focus on Code
PPTX
WSO2Con 2025 - Architecting Cloud-Native Applications
PDF
Mastering Intelligent Digital Experiences with Platformless Modernization
PDF
Accelerate Enterprise Software Engineering with Platformless
PDF
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
Demystifying CMS-0057-F - Compliance Made Seamless with WSO2
Quantum Threats Are Closer Than You Think – Act Now to Stay Secure
Modern Platform Engineering with Choreo - The AI-Native Internal Developer Pl...
Application Modernization with Choreo - The AI-Native Internal Developer Plat...
Build Smarter, Deliver Faster with Choreo - An AI Native Internal Developer P...
Platformless Modernization with Choreo.pdf
Application Modernization with Choreo for the BFSI Sector
Choreo - The AI-Native Internal Developer Platform as a Service: Overview
[Roundtable] Choreo - The AI-Native Internal Developer Platform as a Service
WSO2Con 2025 - Building AI Applications in the Enterprise (Part 1)
WSO2Con 2025 - Building Secure Business Customer and Partner Experience (B2B)...
WSO2Con 2025 - Building Secure Customer Experience Apps
WSO2Con 2025 - AI-Driven API Design, Development, and Consumption with Enhanc...
WSO2Con 2025 - AI-Driven API Design, Development, and Consumption with Enhanc...
WSO2Con 2025 - Unified Management of Ingress and Egress Across Multiple API G...
WSO2Con 2025 - How an Internal Developer Platform Lets Developers Focus on Code
WSO2Con 2025 - Architecting Cloud-Native Applications
Mastering Intelligent Digital Experiences with Platformless Modernization
Accelerate Enterprise Software Engineering with Platformless
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation

Recently uploaded (20)

PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Electronic commerce courselecture one. Pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Empathic Computing: Creating Shared Understanding
PDF
Encapsulation theory and applications.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
gpt5_lecture_notes_comprehensive_20250812015547.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Per capita expenditure prediction using model stacking based on satellite ima...
Assigned Numbers - 2025 - Bluetooth® Document
Building Integrated photovoltaic BIPV_UPV.pdf
Spectral efficient network and resource selection model in 5G networks
Advanced methodologies resolving dimensionality complications for autism neur...
20250228 LYD VKU AI Blended-Learning.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
NewMind AI Weekly Chronicles - August'25-Week II
“AI and Expert System Decision Support & Business Intelligence Systems”
Electronic commerce courselecture one. Pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
sap open course for s4hana steps from ECC to s4
Empathic Computing: Creating Shared Understanding
Encapsulation theory and applications.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Review of recent advances in non-invasive hemoglobin estimation
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...

Sharing Best Practices and Recommendations from the Integration Battlefield

  • 1. Isabelle Mauny VP, Product, WSO2 Last Updated: Nov 2014 Lessons from the ba.lefield Tuesday, December 9, 14
  • 2. 2 About the speaker... ๏ French na)ve ๏ Living in Madrid ๏ Working mostly in Sri Lanka and Europe ๏ 17 years @ IBM, 5 years in startups ๏ Managing the overall WSO2 porEolio ๏ Linux command line user... Tuesday, December 9, 14
  • 3. 3 Who is WSO2 ? ๏ Open Source Middleware Pla2orm Provider ๏ Apache 2.0 License ๏ Provides Integra?on, API Management, Security and Mobile enterprise management products ๏ Main contributor to Apache Stratos PaaS ๏ Creators of DevOps “AppFactory” cloud solu?on Tuesday, December 9, 14
  • 5. Architecture Roadmap 5 Decompose your exis7ng business processes, data and capabili7es into services Make all services accessible via APIs, externally and internally Put services and APIs under control ! Build an ecosystem around your APIs Collect data on your new products and APIs 1 2 3 4 5 Tuesday, December 9, 14
  • 6. 6 Crea%ng and Managing Services Tuesday, December 9, 14
  • 7. 7 Services and APIs ๏ Service deals with implementa)on ๏ API deals with subscrip)on (consumer) ๏ Two very dis)nct life cycles ! ๏ You don’t need the service to create the API... Tuesday, December 9, 14
  • 8. 8 API Lifecycle ๏ An API can pass through mul)ple states ๏ For example: ๏ CREATED ๏ PUBLISHED ๏ DEPRECATED ๏ RETIRED ๏ BLOCKED ๏ Should integrate with complete governance lifecycle Tuesday, December 9, 14
  • 9. 9 Building a Managed API ๏ Crea)ng APIs (interface, docs, samples,etc.) ๏ Adver)sing APIs ๏ Making APIs subscribe-­‐able by consumers ๏ Associa)ng SLAs ๏ Securing APIs ๏ Mone)za)on and Analy)cs Tuesday, December 9, 14
  • 10. 10 API Security Tuesday, December 9, 14
  • 11. 11 API Security ๏ Security is not an aer thought ! ๏ APIs are part of a much larger enterprise picture ๏ How will consumers request an access token ? ๏ Using a SAML 2.0 asser)on ? ๏ Using client_creden)als ? ๏ Using userid/password ? ๏ Make sure you document thoroughly how developers need to manage tokens: ๏ Tokens are like passwords! ๏ Always use SSL for token transporta)on ! ๏ Use Domain restric)ons (WSO2 API Manager) Tuesday, December 9, 14
  • 12. 12 Fine-­‐grained access to APIs ๏ OAuth2 is all about access control: a token is associated to a scope. ๏ XACML (eXtensible Access Control Markup Language) is the de-­‐facto standard for fine-­‐grained access control. ๏ OAuth scope can be represented in XACML policies ๏ Provides fine grain control over what a user/applica?on can do ( i.e. you can call GET but not POST on an API) Tuesday, December 9, 14
  • 13. 13 Passing Auth Informa:on to back-­‐end services ๏ Using JSON Web Tokens (JWT) ๏ Lightweight ๏ Can be signed ๏ Easy to parse and consume ๏ Standard Tuesday, December 9, 14
  • 14. 14 Token Format ๏ JWT Structure {token info}.{claims list}.{signature} ๏ Base-­‐64 Encoded Tuesday, December 9, 14
  • 15. 15 What are Claims ? ๏ Claims are a set of ahributes about a user, mapped to the underlying user store. ๏ A set of claims is called a dialect Tuesday, December 9, 14
  • 16. 16 Deployment Tuesday, December 9, 14
  • 17. 17 Gateway vs. ESB ๏ Oh, but I already have an ESB ! Why do I need a gateway ? ๏ API Gateway vs. Media)on Layer (ESB) ๏ Gateway = light ESB ? ๏ Think ESB as an architecture pahern, not a product! Tuesday, December 9, 14
  • 18. 18 Generic Facade Pa.ern ๏ Pros ๏ No addi)onal hop in the network ๏ Single Server to be managed ๏ More suited for internal deployments ๏ Cons ๏ Complexity of integra)on at edge of network ๏ API Management layer can’t really scale independently ๏ Not appropriate for DMZ deployments (direct access to backend services) Tuesday, December 9, 14
  • 19. 19 Separated Facade & MediaWon ๏ API Gateway Layer acts as simple reverse proxy, enforcing basic policies ๏ Clear separa?on of concern between layers ๏ Media?on layer and API management layer scale independently ๏ Specific security checks/protec?on at edge of the network ๏ Provides protocol transforma?on to the edge of the network Tuesday, December 9, 14
  • 20. 20 Specific WSO2 SoluWon ๏ Our API gateway is actually a full-­‐blown ESB under the hood, constrained at UI level. ๏ You can install the missing ESB features on top of API manager and combine both architecture layers into a single run)me! ๏ Makes the choice a deployment one. Tuesday, December 9, 14
  • 21. 21 Typical Deployment Tuesday, December 9, 14
  • 22. 22 Users Store ๏ Separate admins / corporate users from the developers users’s store (created via self-­‐sign up) Tuesday, December 9, 14
  • 23. 23 You can’t manage what you can’t measure. Tuesday, December 9, 14
  • 24. 24 Why Analy:cs and API Management are important together? ๏ Build confidence in the API model ๏ Understand your customer ๏ Not just the developer but also the end-­‐user ๏ Help manage services and versions ๏ Understand when deprecated services can be re?red ๏ Plan beZer ๏ Monitor the growth of aggregated API traffic ๏ Monitor the growth of specific apps ๏ Even if you’re not going to put analy?cs in place, make sure you capture all events right from beginning of project. Tuesday, December 9, 14
  • 25. 25 AnalyWcs 101: AggregaWon • How to collect data efficiently • How to store data effec)vely • Choose which data to capture Tuesday, December 9, 14
  • 26. 26 AnalyWcs 101 : Analysis • Data opera)ons • Defining KPIs and analy)cs • Opera)ng on large amounts of historical or current data • Crea)ng intelligence Tuesday, December 9, 14
  • 27. 27 AnalyWcs 101 : PresentaWon • Visualiza)on • Dashboards • Reports Tuesday, December 9, 14
  • 28. 28 Monitor And Analyze ๏ Take decisions in real ?me through Complex Event Processing ๏ Create dashboards for both technical and business monitoring Tuesday, December 9, 14
  • 29. 29 DetecWng Usage Pa.erns ๏ My API customer is trying to steal my business : let’s block them. ๏ A customer is at 80% of API plan : let’s warn them ๏ A customer is systema)cally at 120% of the plan : propose an upgrade to the premium plan Tuesday, December 9, 14
  • 30. 30 Demo Tuesday, December 9, 14
  • 31. 31 Demo Setup Tuesday, December 9, 14
  • 32. 32 References ๏ Building an ecosystem for API Security (White Paper) ๏ hhp://wso2.com/whitepapers/wso2-­‐whitepaper-­‐building-­‐an-­‐ecosystem-­‐for-­‐api-­‐ security/ ๏ API Facade Pahern (Webinar) ๏ hhp://wso2.com/library/webinars/2014/01/implemen)ng-­‐api-­‐facade-­‐using-­‐ wso2-­‐api-­‐management-­‐plaEorm/ ๏ API Management: missing link for SOA ๏ hhp://sanjiva.weerawarana.org/2012/08/api-­‐management-­‐missing-­‐link-­‐for-­‐ soa.html ๏ Promo)ng Service Reuse ๏ hhp://wso2.com/whitepapers/promo)ng-­‐service-­‐reuse-­‐within-­‐your-­‐enterprise-­‐ and-­‐maximizing-­‐soa-­‐success/ Tuesday, December 9, 14
  • 33. 33 Download API Manager today! ๏ hhp://wso2.com/products/api-­‐manager/ Tuesday, December 9, 14
  • 34. Contact us ! Tuesday, December 9, 14