wilma - lesson 3. securing a rest api

9
PEP Proxy - Wilma GE Lesson 3 - Securing a REST API Álvaro Alonso. UPM – DIT Security Chapter. FIWARE [email protected], @larsonalonso

Upload: alvaro-alonso-gonzalez

Post on 08-Jan-2017

367 views

Category:

Engineering


2 download

TRANSCRIPT

Page 1: Wilma - Lesson 3. Securing a REST API

PEP Proxy - Wilma GELesson 3 - Securing a REST API

Álvaro Alonso. UPM – DITSecurity Chapter. [email protected], @larsonalonso

Page 2: Wilma - Lesson 3. Securing a REST API

Contents

• Checking Authentication• Checking Basic Authorization• Checking Advanced Authorization

Page 3: Wilma - Lesson 3. Securing a REST API

Main concepts

• Authentication– Check if a user is a registered user

• Basic Authorization– Check if a user has permissions to access a resource– HTTP verb + resource path

• Advanced Authorization– Check if a user has permissions to access a resource– Custom XACML policies

Page 4: Wilma - Lesson 3. Securing a REST API

Main concepts - Authentication

Backend ServiceREST API

HTTP request + TOKEN

Wilma

User

Keyrock GE

TOKEN

OK + user info

Page 5: Wilma - Lesson 3. Securing a REST API

Main concepts – Basic Authorization

Backend ServiceREST API

HTTP request + TOKEN

Wilma

User

Keyrock GE

OK + user info

TOKEN

AutZForce GE

roles + verb + path

OK

Page 6: Wilma - Lesson 3. Securing a REST API

Main concepts – Advanced Authorization

Backend ServiceREST API

HTTP request + TOKEN

Wilma *

User

Keyrock GE

OK + user info

TOKEN

AutZForce GE

roles + XACML req

OK

Page 7: Wilma - Lesson 3. Securing a REST API

Guidelines

• Requests to Wilma

$ curl --header "X-Auth-Token:z2zXk...ANOXvZrmvxvSg"

http://proxy_host

Page 9: Wilma - Lesson 3. Securing a REST API

PEP Proxy - Wilma GELesson 3 - Securing a REST APIÁlvaro Alonso. UPM – DITSecurity Chapter. [email protected], @larsonalonso