DiscoverProgramming Tech Brief By HackerNoonHow to Solve Real-Time Auth Without Having to Sacrifice Performance
How to Solve Real-Time Auth Without Having to Sacrifice Performance

How to Solve Real-Time Auth Without Having to Sacrifice Performance

Update: 2025-11-17
Share

Description

This story was originally published on HackerNoon at: https://hackernoon.com/how-to-solve-real-time-auth-without-having-to-sacrifice-performance.

I will walk you through, step-by-step, how to build a fully functional, high-performance WebSocket server in Symfony that is secured by Keycloak.

Check more stories related to programming at: https://hackernoon.com/c/programming.
You can also check exclusive content about #symfony, #keycloak, #websocket, #jwt, #security, #php, #websockets, #jwt-authentication, and more.




This story was written by: @mattleads. Learn more about this writer by checking @mattleads's about page,
and for more stories, please visit hackernoon.com.





In today’s enterprise world, authentication is almost always delegated to a central, external server: an SSO provider like Keycloak. The obvious answer, token introspection, is a performance-bottleneck nightmare. We will not be making any blocking API calls. Instead, we will perform local, cryptographic validation of KeyCloak’S JWTs using their public JSON Web Key Set.

Comments 
loading
In Channel
loading
00:00
00:00
1.0x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

How to Solve Real-Time Auth Without Having to Sacrifice Performance

How to Solve Real-Time Auth Without Having to Sacrifice Performance

HackerNoon