@JulienTopcu
@JulienTopcu
@JulienTopcu
@JulienTopcu
@JulienTopcu
@JulienTopcu
@JulienTopcu
@JulienTopcu
@JulienTopcu
@JulienTopcu
@JulienTopcu
@JulienTopcu
Dmitri (VIP)
I'd like to order
Give me your account number
and your password
at the Grand Budapest Hotel
here they are!
@JulienTopcu
👿
Hello, that's Dmitri
I'd like to place a huge order
Give me your account number
and your password please,
so I can check this is you
Here they are!
@JulienTopcu
👿
@JulienTopcu
@JulienTopcu
Dmitri (VIP)
I'd like to order
Do you know him ?
I'm transfering him to you and
call me back at
+33 123456789
Give me your account number
and your password please
Here they are!
That's really him
@JulienTopcu
@JulienTopcu
Dmitri (VIP)
I'd like to order
Do you know him ?
I'm transfering him to you and
call me back at
+33 123456789
Give me your account number
and your password please
Here they are!
That's really him
@JulienTopcu
Dmitri (VIP)
What would you like ?
A courtesan
I'm looking for Dmitri's order (code)
Here is the order number
(authorization code)
for the bakery,
I'm transfering back
Dmitri to you
@JulienTopcu
@JulienTopcu
@JulienTopcu
@JulienTopcu
@JulienTopcu
@JulienTopcu
You
End User
Resource Server
Client
Import my contacts!!!
Does he have an account ?
/authorize
Who are you?
Authorization Server
Here are my credentials
Give me the contacts !!!!
Authorization Code ???
You can access his Gmail
Authorization Code
Contacts
Resources
@JulienTopcu
Dmitri (VIP)
Oh yes!
It's Robert Hits
Do you know him?
call me back at +33 1666666 👿
Give me your credentials, please
Here they are
Here is the order number
(code)
@JulienTopcu
Hello, it's Robert Hits 👿,
Would you like a pastry?
@JulienTopcu
Robert Hits | +33 123456789 |
---|---|
Robert Hits | +33 123456790 |
It's Robert Hits
Call me back at +33 1666666 👿
I don't know this number, bye
@JulienTopcu
@JulienTopcu
@JulienTopcu
You
End User
Resource Server
Client
Import my contacts!!!
Does he have an account ?
/authorize
Who are you?
Authorization Server
Here are my credentials
Give me the contacts !!!!
Authorization Code ???
You can access his Gmail
Authorization Code
@JulienTopcu
@JulienTopcu
@JulienTopcu
@JulienTopcu
@JulienTopcu
@JulienTopcu
@JulienTopcu
@JulienTopcu
Here is my booking reference number
Hi Dmitri,
Here is your access card
Authorization Code
Access Token
@JulienTopcu
@JulienTopcu
You
End User
Resource Server
Client
Import my contacts!!!
Does he have an account ?
/authorize
Who are you?
Authorization Server
Here are my credentials
Give me the contacts !!!!
Authorization Code ???
You can access his Gmail
Authorization Code
Resource Server
Client
Authorization Server
I'm changing the browser address to redirect_uri?code =Authorization Code
facebook.com?code=XXXX
Front Channel 🧐
Can I have an Access Token, then?
Authorization Code + Client ID in the HTTPS payload
Back Channel
Give me the contacts!!!!
Access Token
Access Token
@JulienTopcu
@JulienTopcu
@JulienTopcu
@JulienTopcu
@JulienTopcu
@JulienTopcu
You
End User
Resource Server
Client
Import my contacts!!!
Does he have an account ?
/authorize
Who are you?
Authorization Server
Here are my credentials
Code Challenge (CC) y
Code Challenge Method (CCM) f
Resource Server
Client
Authorization Server
I'm changing the browser address to redirect_uri?code =Authorization Code
facebook.com?code=XXXX
Back Channel
Give me the contacts!!!!
Access Token
Access Token
CC = CCM(CV) ???
y = f(x) ???
Can I have an Access Token, then?
Authorization Code + Client ID + Code Verifier (CV)
x
@JulienTopcu
OAUTH 2.1 best practice
@JulienTopcu
@JulienTopcu
@JulienTopcu
Dmitri (VIP)
I'd like to order
Do you know him?
Call me back at
+33 123456789
Give me your credentials
Here they are
@JulienTopcu
Dmitri (VIP)
They would like to access your room.
Do you consent them to pick up your pastry?
Of Cource
Here is the Order Number
The card you will have in exchange
will only have access to the bakery
@JulienTopcu
@JulienTopcu
You
End User
Resource Server
Client
Who are you?
Authorization Server
Here are my credentials
Do you consent Facebook to access your contacts?
Yes !
Authorization Code
Can I have an Access Token ?
The Access Token with the Contact Scope
Give me the contacts, I have the Access Token!!
@JulienTopcu
@JulienTopcu
@JulienTopcu
https://oauth.net/2.1/