Handling Auth for Multiple Services Without Cross-Domain Cookies
A quick note about handling auth across multiple apps - without using cookies.
Cookies are starting to get a bad rap. All sorts of legal disclaimers/acceptance popups and filters are starting to appear. This makes the usual approach to storing a session a bit awkward.
One way to accomplish this feat, without exposing the JWT in the URL, and without needing all services to have direct access to the same databases, is to create temporary sessions.
This approach basically works like this:
There's plenty of other workarounds, but this particular architecture has come in handy for my team lately, so I thought I'd share it.