chat-ui icon indicating copy to clipboard operation
chat-ui copied to clipboard

Any way to pass authorization header from Oauth2 down to custom endpoint?

Open corte opened this issue 1 year ago • 0 comments

Describe your feature request

It would be nice to be able to pass the authorization header from Oauth2 to custom endpoint. I have an endpoint that mimicks TGI and I would like to authenticate every request in order to protect the api,

Implementation idea

Just pass an authorization header from frontend to bff and pass it further to the endpoint. It could be a custom header if that would conflict with the current authorization configuration for endpoints. The current configuration allows to pass a static auth header, but I want to be able to pass the jwt of the authenticated user.

corte avatar Dec 31 '24 13:12 corte