Gary' Blog

Gary' Blog

Gary's Technical Blog

马上订阅 Gary' Blog RSS 更新: https://garymeng.com/feed/

Authentication FastAPI with Keycloak

Gary
2025年2月4日 22:10
TechnicalAuthenticationFastAPiKeycloak
First you need to create a realm and client, and get the client id and secret. Go to Keycloak configuration problems and solutions to see how to setup at Keycloak Admin Panel. 1 Install dependencies pip install python-jose[cryptography]>=3.3.0 pip install cryptography>=3.4.0 pip install PyJWT==2.10.1 Setup configuration Add following to your configuration file, like config.py: from […]