Join the DZone community and get the full member experience.
Join For Free
Build APIs from SQL and NoSQL or Salesforce data sources in seconds. Read the Creating REST APIs white paper, brought to you in partnership with CA Technologies.
I believe these two things are true:
- It is very important to secure your microservices
- It can be difficult to read documentation trying to explain how to secure your microservices
We’ve built three samples for you, which we hope will be easy to read, and will teach you something new.
Using API keys to secure your microservice is Adam’s sample. He explains what API keys are, where they come from, and how they’re used.
Using access tokens to secure microservices is the first of two from Ozzy. He explains how the access tokens created as a result of working with OAuth and OpenID Connect work and are used within a microservices architecture.
Using signed JSON Web Tokens (JWTs) to secure microservices builds on the previous article to explain how to use Signed JWTs to propagate identity instead of access tokens.
All sample code is available in GitHub. Go play!
The Integration Zone is brought to you in partnership with CA Technologies. Use CA Live API Creator to quickly create complete application backends, with secure APIs and robust application logic, in an easy to use interface.
Published at DZone with permission
Erin Schnabel, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.