SlideShare a Scribd company logo
OAuth is a mess
OAuth.ioby
OAuth.io
NO KIDDING!
No nor
will be shown in this presentation
OAuth.io
Sorry
"If you don't know what OAuth is!"
check these slides first:
OAuth.io
Click here
OAuth 1.0
OAuth 2.0
FAKE TWINS?
OAuth.io
OAuth 1.0
3 calls need to be
made by the Client
Call the OAuth server
and ask for temporary credentials.
!
Open a webpage dialog
using those credentials, so the user can
sign in and give access.
!
Call the OAuth server again
combining the temporary credentials
with the temporary token to get the final
access token.
OAuth.io
OAuth 2.0
Only 2 calls
Call the OAuth server!!!!
Open a webpage dialog
OAuth 1.0 has one more step
THANKS Cpt. OBVIOUS
OAuth.io
DOCUMENTATION MADNESS
OAuth.io
Because each
documentation
has its own
"logic"
MADNESS
FINDING URIs
IS A PAIN!
OAuth.io
Some docs won't
tell you if it's
OAuth 1.0 or
2.0
WHY?
UNNAMED
OAuth.io
Need an example?
They say it uses OAuth 2.0
Which is surprising as in a server to
server flow, you expect the flow to
be 3-legged.
OAuth.io
Need an example?
To do anything else than the server
side flow you have to search for it!
The steps are documented but only
in the API reference
Even the webpage dialog and the code
exchange endpoints are described in
different sections
You will become that guy
OAuth.io
TOKEN RESPONSES?
CHOOSE

YOUR

WEAPON
OAuth.io
XML?
JSON?
URL-ENCODED TEXT
like Concur.com
like Facebook
like Google
TOKEN RESPONSES
DATA FORMATS
COME ON!
OAuth.io
PARAMETERS
Parameters' names vary
between providers
access_token
Facebook uses:
When Google uses:
oauth_token
It's a trap!
TOKEN RESPONSES
OAuth.io
SEPARATORS
So providers use:
,
How logical!
; |
Separators should be
spaces
-> according to the RFC
TOKEN RESPONSES
OAuth.io
CARDINALITY DEGREE
Kill them all Bill
Read only, read and write
for Disqus / Heroku...
Read access for X, write access
for X, read access for Y...
for Others...
Google scopes are URLs
TOKEN RESPONSES
OAuth.io
TOKEN MANAGEMENT
EXPIRY
&
REFRESH
ORDEAL
OAuth.io
TOKEN MANAGEMENT
TOKEN EXPIRY
A wild variation
between services
Sometimes you can
control it sometimes
not
Always in movement
the expiry isOAuth.io
TOKEN MANAGEMENT
EXPIRY: METHODS DIFFER
Google adds a field
!
to the authorization url
that can be
Others add options in the
scope
access_type
online offlineor
StackExchange: no_expiry
Soundcloud: no-expiring
Meetup.com: ageless
OAuth.io
TOKEN MANAGEMENT
REFRESH TOKEN
The standard proposes a
refresh token flow
followed by few
!
Facebook instead adds the
grant
type
fb_exchange_token
Github / Google ...
Unleash the ChuckOAuth.io
OAuth.ioWith
Integrate any of our 100+ OAuth
providers in minutes the SAME WAY
TAKE A LOOK
OAuth Popup
with facebook

More Related Content

PDF
4.1 html lec 4
PDF
5.1 html lec 5
PPTX
Forms 2010
PPT
Implementing OpenID for Your Social Networking Site
PDF
1.1 html lec 1
PPT
Web 2.0: The How Of OAuth
PPTX
Alogorithum of login form
PDF
How to Launch a Website
4.1 html lec 4
5.1 html lec 5
Forms 2010
Implementing OpenID for Your Social Networking Site
1.1 html lec 1
Web 2.0: The How Of OAuth
Alogorithum of login form
How to Launch a Website

Similar to OAuth is a mess! (20)

PDF
OAuth you said
PDF
The Current State of OAuth 2
PPTX
OAuth - Don’t Throw the Baby Out with the Bathwater
PPTX
An Introduction to OAuth2
PPTX
An Introduction to OAuth 2
PDF
OAuth In The Real World : 10 actual implementations you can't guess
PDF
OAuth - Open API Authentication
PDF
Torii: Ember.js Authentication Library
PDF
The Many Flavors of OAuth - Understand Everything About OAuth2
PPTX
OAuth 2 at Webvisions
PDF
OAuth for your API - The Big Picture
PDF
OAuth2 and LinkedIn
PPTX
Securing your apps with OAuth2 and OpenID Connect - Roland Guijt - Codemotion...
PDF
User Management with LastUser
PPT
Openid & Oauth: An Introduction
PDF
The Identity Problem of the Web and how to solve it
PPTX
O auth
PDF
Implementing OAuth
PPTX
PDF
ORCID OAuth Dance with google playground
OAuth you said
The Current State of OAuth 2
OAuth - Don’t Throw the Baby Out with the Bathwater
An Introduction to OAuth2
An Introduction to OAuth 2
OAuth In The Real World : 10 actual implementations you can't guess
OAuth - Open API Authentication
Torii: Ember.js Authentication Library
The Many Flavors of OAuth - Understand Everything About OAuth2
OAuth 2 at Webvisions
OAuth for your API - The Big Picture
OAuth2 and LinkedIn
Securing your apps with OAuth2 and OpenID Connect - Roland Guijt - Codemotion...
User Management with LastUser
Openid & Oauth: An Introduction
The Identity Problem of the Web and how to solve it
O auth
Implementing OAuth
ORCID OAuth Dance with google playground
Ad

Recently uploaded (20)

PDF
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
PPTX
artificialintelligenceai1-copy-210604123353.pptx
PPTX
1402_iCSC_-_RESTful_Web_APIs_--_Josef_Hammer.pptx
PPTX
Internet Safety for Seniors presentation
PDF
Slides PDF: The World Game (s) Eco Economic Epochs.pdf
PDF
The Ikigai Template _ Recalibrate How You Spend Your Time.pdf
PDF
📍 LABUAN4D EXCLUSIVE SERVER STAR GAMING ASIA NO.1 TERPOPULER DI INDONESIA ! 🌟
PPTX
Power Point - Lesson 3_2.pptx grad school presentation
PDF
SlidesGDGoCxRAIS about Google Dialogflow and NotebookLM.pdf
PPTX
Database Information System - Management Information System
PPTX
newyork.pptxirantrafgshenepalchinachinane
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PDF
Session 1 (Week 1)fghjmgfdsfgthyjkhfdsadfghjkhgfdsa
PDF
The Evolution of Traditional to New Media .pdf
PPTX
SAP Ariba Sourcing PPT for learning material
PPTX
Slides PPTX: World Game (s): Eco Economic Epochs.pptx
PPTX
Mathew Digital SEO Checklist Guidlines 2025
PPTX
t_and_OpenAI_Combined_two_pressentations
PPT
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
PDF
Uptota Investor Deck - Where Africa Meets Blockchain
Smart Home Technology for Health Monitoring (www.kiu.ac.ug)
artificialintelligenceai1-copy-210604123353.pptx
1402_iCSC_-_RESTful_Web_APIs_--_Josef_Hammer.pptx
Internet Safety for Seniors presentation
Slides PDF: The World Game (s) Eco Economic Epochs.pdf
The Ikigai Template _ Recalibrate How You Spend Your Time.pdf
📍 LABUAN4D EXCLUSIVE SERVER STAR GAMING ASIA NO.1 TERPOPULER DI INDONESIA ! 🌟
Power Point - Lesson 3_2.pptx grad school presentation
SlidesGDGoCxRAIS about Google Dialogflow and NotebookLM.pdf
Database Information System - Management Information System
newyork.pptxirantrafgshenepalchinachinane
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
Session 1 (Week 1)fghjmgfdsfgthyjkhfdsadfghjkhgfdsa
The Evolution of Traditional to New Media .pdf
SAP Ariba Sourcing PPT for learning material
Slides PPTX: World Game (s): Eco Economic Epochs.pptx
Mathew Digital SEO Checklist Guidlines 2025
t_and_OpenAI_Combined_two_pressentations
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
Uptota Investor Deck - Where Africa Meets Blockchain
Ad

OAuth is a mess!