Securing Microservices In: Securing Your First Microservice
Securing Microservices In: Securing Your First Microservice
ASP.NET Core
SECURING YOUR FIRST MICROSERVICE
Kevin Dockx
ARCHITECT
@KevinDockx https://www.kevindockx.com
t
h
s
Accessing microservices
- On behalf of the client application
- On behalf of the user
s
h
s
Microservices: Microservices
Getting started
the big picture communication
Securing
Data management Versioning
microservices
Microservices: Microservices
Getting started
the big picture communication
Securing
Data management Versioning
microservices
Visual Studio 2019 Visual Studio Visual Studio for JetBrains Rider
v16.4 or better Code Mac
s
h
s
Event catalog
GloboTicket
client
Demo
Getting started with the GloboTicket
demo application
Token-based Security for Microservices
Event catalog
GloboTicket
client
Event catalog
GloboTicket
client
IdentityServer4
- http://docs.identityserver.io/
Identity
Event catalog
GloboTicket
client
Demo
Identity
{ aud: “globoticket”}
Event catalog
GloboTicket
client
credentials are
validated
access_token access_token
t
h
s
Demo
Demo
Accessing a microservice on behalf of the
client application
s
h
s
create code_verifier
hash (SHA256)
user authenticates
hash code_verifier
id_token id_token
token is validated
t
h
s
Demo
Demo
Logging out
Accessing a Microservice on Behalf of the User
Identity
{ aud: “globoticket”}
Event catalog
{ aud: “globoticket”
sub: “12ka-eia…” }
GloboTicket
client
create code_verifier
hash (SHA256)
user authenticates
hash code_verifier
token is validated
hash code_verifier
Demo
Accessing a microservice on behalf
of the user
t
h
s