Upgrade to Pro — share decks privately, control downloads, hide ads and more …

JWTs for CSRF & Microservices

JWTs for CSRF & Microservices

In this talk, I show how to use JWTs in two code examples. The first replaces the standard Spring Security CSRF (cross site request forgery) token mitigation with a JWT version. The second is a basic microservices example that demonstrates how to establish trust between two microservices using JWTs.

References for the source-code, this desk, and other resources can be found at: https://github.com/dogeared/JavaRoadStorm_CactusCon_2017

Micah Silverman

September 30, 2017
Tweet

More Decks by Micah Silverman

Other Decks in Programming

Transcript

  1. Welcome! • Agenda • JWT with CSRF & Microservices (40

    mins) • Okta 101 (5 mins) • Q&A (5 mins)
  2. Okta Enables Companies to Do Both IT & API Identity

    & Mobility Service: Identity Management Mobility Management Strong Authentication developer.okta.com Identity API Products: Identity API for Any App Developer Tools and Community Employees, Contractors Partners, Customers
  3. Resources • Repos used in today’s preso: ◦ github.com/jwtk/jjwt ◦

    github.com/dogeared/JavaRoadStorm2016 • https://afitnerd.com/JavaRoadStorm2016/ • JJWT Guest Post on Baeldung - bit.ly/29ZPZAd • OIDC Playground - https://okta-oidc-fun.herokuapp.com • Stormpath Microservices Screencast - bit.ly/29Wi6iw • JWT Inspector - jwtinspector.io • HTTPie - github.com/jkbrzt/httpie • What are Microservices? ◦ martinfowler.com/articles/microservices.html • @afitnerd @OktaDev