最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

session - What is the best practice method for automatically refreshing user's Keycloak access tokens with React + NestJ

programmeradmin3浏览0评论

I have an application that uses Keycloak SSO for authenticaton. I have a confidential client registered on Keycloak. At the moment, for each HTTPS request from my front end to back end, I send the user's access token as a bearer token. In my NestJS guard, I use the public key of the realm to check the validity of the access token. I need to implement a mechanism for refreshing expired tokens. What is the best practice for this? Should I do it on the front end application or back end? And how would I do this on back end using NestJS?

发布评论

评论列表(0)

  1. 暂无评论