I have not been able to divine the way I might add extra claims from my application database. Given my limited understanding, I see two ways:
- After successful authentication have keycloak pull extra claims from the application database somehow. This app database is postgres, for example.
- Have the application update the jwt with extra claims using a shared key.
I would like some feedback both paths. I feel that the fist option may be safer. However I am not sure where to begin that implementation journey.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…