Slide 19
Slide 19 text
Maintaining state with edge-managed cookies
fiddle.fastlydemo.net/fiddle/
c249a659
User Fastly Auth service Content service
GET /auth
200 OK
POST /auth/login
200 OK
Auth-Result: VALID
Auth-Data: {id:372635,level:
"Subscriber",name:"Alice"}
307 Temporary redirect
Location: /home
Set-Cookie: auth=#########
GET /home
Cookie: auth=#########
200 OK
Vary: Auth-Level
200 OK
GET /home
Auth-ID: 372635
Auth-Level: Subscriber
Auth-Name: Alice
Get the login form
Submit the login form,
get a session cookie &
redirect to homepage
Load homepage, get
Subscriber-only version