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
I have discussed this feature request with the community.
Describe the background of your feature request
In some cases it might be desirable to protect authenticated legacy or 3rd party services with Heimdall.
A specific case I had myself was restricting access to a 3rd party server to users with specific roles in my system but authenticating against the server using a service account.
Describe your idea
Heimdall already has functionality to authenticate against contextualizer services (https://dadrus.github.io/heimdall/v0.11.1-alpha/docs/configuration/reference/types/#_authentication_strategy).
My specific problem would be solved by having the possibility of using those same auth strategies against not only contextualizers but also regular Heimdall backends.
I propose doing this via a special unifier that is configurable via the auth strategies linked above and attaches the token to the request going to the backend, e.g.:
obviously the doubled config is bad, but I hope it gets the idea across.
Are there any workarounds or alternatives?
The workaround I'm currently using is executing the OAuth2 token request manually via a generic contextualizer, and then attaching the token to the request using a header unifier:
Preflight checklist
Describe the background of your feature request
In some cases it might be desirable to protect authenticated legacy or 3rd party services with Heimdall.
A specific case I had myself was restricting access to a 3rd party server to users with specific roles in my system but authenticating against the server using a service account.
Describe your idea
Heimdall already has functionality to authenticate against contextualizer services (https://dadrus.github.io/heimdall/v0.11.1-alpha/docs/configuration/reference/types/#_authentication_strategy).
My specific problem would be solved by having the possibility of using those same auth strategies against not only contextualizers but also regular Heimdall backends.
I propose doing this via a special unifier that is configurable via the auth strategies linked above and attaches the token to the request going to the backend, e.g.:
obviously the doubled
config
is bad, but I hope it gets the idea across.Are there any workarounds or alternatives?
The workaround I'm currently using is executing the OAuth2 token request manually via a
generic
contextualizer, and then attaching the token to the request using aheader
unifier:However, this is suboptimal due to the hardcoded
cache_ttl
(it should instead be set to whatever the/token
endpoint returns).Version
v0.11.1-alpha
Additional Context
This idea has first been suggested on the Discord server: https://discord.com/channels/1100447190796742698/1123233818543923220
The text was updated successfully, but these errors were encountered: