API Management and OAuth for
Web, Mobile and the Cloud
K Scott Morrison
CTO & Chief Architect


Nov 30, 2011
“Change has a considerable psychological
impact on the human mind.
To the fearful it is threatening because it
means that things may get worse.
To the hopeful it is encouraging because
things may get better.
To the confident it is inspiring because the
challenge exists to make things better.”
                           - King Whitney Jr.
This talk is
about change
Our basic problem
has not changed:




                       Access to
                    information
But things outside of
our control that are
      changing
We are interconnected
We are leveraging clouds
Mobility is exploding
You already
  know the
underpinnings
But SOA needs
  to change
And that is
what this talk is
   about.
Let me tell you a secret…
(it’s a gold rush)
Quote App
Proposal Generator

 Product Model:


 No. Units:



          Next
Proposal Generator

 Product Model:
    API Portal

 No. Units:



        Next
Networking Gateway

API Portal
XML Accelerator
Proposal Generator

 Product Model:
    API Portal

 No. Units:
    2


1         Next

2
3
Proposal Generator

 Product Model:
    API Portal

 No. Units:
    2


          Next
Proposal Generator

 Discount


 Recipient




         Submit
Proposal Generator

 Discount
   5%

 Recipient




0%       Submit
5%
10%
Proposal Generator

 Discount
   5%

 Recipient
   bobama@whitehouse.gov


         Submit
Proposal Generator

 Discount
   5%

 Recipient
   @whitehouse.gov


         Submit
Proposal Generator


 Processing…




          Cancel
Proposal Generator


 …Done.


   Proposal submitted
       for review



       Reference no L7-ABC123
API
Application
Programming
Interface
APIs transform the Web into an
   integration platform
                                                  Cloud
                             Servers

     Legacy
                                                               Third party
                                                               web apps


Directory

                                                               Mobile
                                                               devices




              Applications                                Browsers
                                       Database
The API is the glue for the New
Enterprise Web




                 Enterprise
                  Network
Why did the web work so well?
Very loose coupling…




              5

           Approximate number of global web pages
But haven’t we heard this story before?
Let’s consider the developer
experience using SOAP
                                  Web
                                  Services
                                  Server




                           WSDL
http://api.layer7.com/getPerson?Name=Scott
http://api.layer7.com/getPerson?Name=Scott


{
    "firstName": ”Scott",
    "lastName" : ”Morrison",
    ”title" : “CTO”,
    "address" :
    {
       "streetAddress": ”405-1100 Melville",
       "city"      : ”Vancouver",
       ”prov"       : ”BC",
       "postalCode" : ”V6E 4A6"
    },
    "phoneNumber":
    [
       {
         "type" : ”office",
         "number": ”605 681-9377"
       },
       {
         "type" : ”home",
         "number": ”604 555-4567"
       }
    ]
}
Low Barrier to Entry
Frictionless
Agility
Not Convinced Yet?
 Take a look at XML
<!DOCTYPE x [ <!ENTITY y "a]>b"> ]>
<x>
  <a b="&y;>" />
  <![CDATA[[a>b <a>b <a]]>
  <?x <a> <!-- <b> ?> c --> d
</x>
The new alternative is JSON


     Structure            Name/Value
JSON is simple
     {
         "firstName": ”Scott ",
         "lastName" : ”Morrison",
         ”title" : “CTO”,
         "address" :
         {
            "streetAddress": ”405-1100 Melville",
            "city"      : ”Vancouver",
            ”prov"       : ”BC",
            "postalCode" : ”V6E 4A6"
         },
         "phoneNumber":
         [
            {
              "type" : ”office",
              "number": ”605 681-9377"
            },
            {
              "type" : ”home",
              "number": ”604 555-4567"
            }
         ]
     }
XML giving way to JSON
illustrates the theme of the
change



 •   Complex                   •   Simple
 •   Highly standardized       •   Informal
 •   Vendor driven             •   Grassroots
 •   Barriers                  •   Frictionless
What about governance?
Contracts
Old way: WSDL
New way: Just write a web page
Design time governance:
  the integrated reg/rep
The new design-time
governance leverages
successful communication
tools
           •   Portal
           •   Wiki
           •   Forum
           •   Blog
           •   Email workflow
What about run time governance?
Rules are only good with
           enforcement
Consider WS-Security
         <?xml version="1.0" encoding="utf-8" ?>
         <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
                 xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
          <soap:Header/>

           <soap:Body xmlns:m=“http://www.example.org/stock”>
             <m:GetStockPrice>
               <m:StockName>ABC</m:StockName>
             </m:GetStockPrice>
           </soap:Body>
         </soap:Envelope>
http s
                ://api.layer7.com/getPerson?Name=Scott


{
    "firstName": ”Scott",
    "lastName" : ”Morrison",
    ”title" : “CTO”,
    "address" :
    {
       "streetAddress": ”405-1100 Melville",
       "city"      : ”Vancouver",
       ”prov"       : ”BC",
       "postalCode" : ”V6E 4A6"
    },
    "phoneNumber":
    [
       {
         "type" : ”office",
         "number": ”605 681-9377"
       },
       {
         "type" : ”home",
         "number": ”604 555-4567"
       }
    ]
}
What about identity and access
          control?
SAML is complex
OAuth by example
So what was SOA governance again?

Old Governance New Governance

 • People            • People
 • Process           • Process
 • Technology        • I have lots of
                       this already…
To Summarize:
                    Old            New
Documentation       WSDL           Wiki/Blog
Discovery           Reg/Rep        Search
Approval            G10 Platform   Email
Enforcement         Gateway        Gateway
User Provisioning   IAM            Portal
Community           What’s that?   Forum
The new way to manage
The new people to manage
These are the new people to manage
“Technology is dominated by two types of
people:
 those who understand what they do not
manage,
 and those who manage what they do not
understand.”

                        - Archibald Putt
So how can you
understand completely and
   manage effectively?
IT is sick of
piecemeal solutions
That’s why we built the Layer 7 API
Developer Portal
                                  App




                   Firewall


              API
                                              Developer
            Gateway




                                      API
                                     Portal




      API Server
                              Enterprise
                               Network
Let’s Summarize:

    • Simple wins every time
    • SOA is changing
      • and so is SOA governance
    • The new enterprise web is about
      APIs
      • Driven by cloud and mobility
    • Solutions like Layer 7’s API Portal
      integrate all the familiar tools to
      effectively manage your APIs
For further information:




                K. Scott Morrison
                Chief Technology Officer & Chief Architect
                Layer 7 Technologies
                1100 Melville St, Suite 405
                Vancouver, B.C. V6E 4A6
                Canada
                (800) 681-9377

                smorrison@layer7tech.com
                http://www.layer7tech.com

November 2011
Picture Credits
   Big Ben by meanone97 – stock.exchg
   Whiz Kids by Ron S. Gejman – ron.gejman.com
   World Puzzle by juancho17 – stock.exchg
   Rack Server by Pazado – stock.exchg
   Analogue Erosion Control Device, Fall & wheat by Kevin
    Hudkins - Flickr

API Management and OAuth for Web, Mobile and the Cloud: Scott Morrison's Presentation at Gartner AADI 2011

Editor's Notes

  • #4 Everyone here needs to choose.Ignore the middle groundAre you fearfulOr are you confident?
  • #8 2 Drivers. #1 is cloud, #2 is mobile
  • #15 Let me tell you all a secret
  • #30 The new enterprise web is about integration
  • #32 19.2B pages yahoo 2005346Mweb sites netcraft June 2011
  • #40 Psych term, but look at examples
  • #41 Psych term, but look at examples
  • #42 Boil to its essence
  • #44 Autobinding
  • #46 Psych term, but look at examples
  • #49 RUN TIME ESSENTIAL!
  • #50 Developers hate these things
  • #53 Run time governance is a first order problem now
  • #57 What about identity?
  • #62 But also internal users too
  • #66 The new enterprise web is about integration
  • #67 The new enterprise web is about integration
  • #68 The new enterprise web is about integrationAsk yourself now, given the right tools, which side are you on?