Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Add Authentication (or Custom) Header in RelayProxy mode #37

Closed
theboyknowsclass opened this issue Jan 31, 2022 · 1 comment
Closed

Comments

@theboyknowsclass
Copy link

We would like to place an extra level of security on our relay proxy instance, so that only calls from authenticated users are allowed.

Is it possible to (add the ability to) add a custom http header to all calls coming from the client sdk?

@eli-darkly
Copy link
Contributor

You can already do it like so:

        var config = Configuration.Builder("mobile-key")
            .Http(Components.HttpConfiguration().CustomHeader("name", "value"))
            .Build();

That'll be applied to all HTTP requests from the SDK, regardless of whether the requests are going to the Relay Proxy or to the regular LaunchDarkly endpoints. Neither LaunchDarkly nor the Relay Proxy will do anything with any authentication headers you add, but I presume this is for some kind of gateway that you're putting in between?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants