Implementing Security With API Gateway and BFF Patterns Slides
Implementing Security With API Gateway and BFF Patterns Slides
Kevin Dockx
ARCHITECT
@KevinDockx https://www.kevindockx.com
t
h
s
Identity
A
P
I
Event catalog
g
a
GloboTicket t
client e
w Shopping basket Discount
a
y
Common API Gateway Tasks
Rate limiting
Caching
Handling security
s
h
s
An API gateway
Exploring the - Decouples the client from the backend
implementation
API Gateway
- Takes away responsibilities
A Common API Gateway Security Pattern
g Event catalog
a
t
GloboTicket
client e
w
Shopping basket Discount
a
y
HTTPS everywhere
HTTPS isn’t just for the outside world. It’s also for your
internal, private network, cloud-based or otherwise.
s
h
s
g Event catalog
a
t
GloboTicket
client e
w
Shopping basket Discount
a
y
Identity Service Location
private network
Identity
Event catalog
API
gateway
GloboTicket
client
Identity
You identity service is used across your
Service application landscape
Location
Identity Service Location
g Event catalog
a
t
GloboTicket
client e
w
Shopping basket Discount
a
y
t
h
s
Demo
Adding Ocelot
t
h
s
Demo
Integrating Ocelot with our identity
service
s
h
s
Demo
Passing user information to a
microservice
The Backend-for-frontend Pattern
B
F
F
Event catalog
Identity
B
F
GloboTicket
F Shopping basket Discount
general client
s
h
s
Ocelot specifics
- Secure routes to microservices by
Summary letting Ocelot check the incoming token
- Pass information to each microservice
via request headers
A backend-for-frontend is a backend
catered to a specific user experience
- It can be implemented as an API
gateway