You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Custom protocol mapper which calls external REST endpoint - how to avoid multiple requests?
#17060
Hello,
I am trying to implement a custom protocol mapper which calls external REST endpoint to acquire extra scope data for current user. I was following this example and everything works as expected. The problem is, that for single sign in call, my mapper gets the same data three times. I was wondering what is most clean way to avoid such behaviour. Probably I should cache HTTP response in the context of current sign in request. But how to do this with Keycloak API?
My code looks like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I am trying to implement a custom protocol mapper which calls external REST endpoint to acquire extra scope data for current user. I was following this example and everything works as expected. The problem is, that for single sign in call, my mapper gets the same data three times. I was wondering what is most clean way to avoid such behaviour. Probably I should cache HTTP response in the context of current sign in request. But how to do this with Keycloak API?
My code looks like this:
All reactions