nclient / NClient

:dizzy: NClient is an automatic type-safe .Net HTTP client that allows you to call web service API methods using annotated interfaces or controllers without boilerplate code.
Apache License 2.0
43 stars 11 forks source link

Send Authorization header on redirect to a trusted host #445

Open smolchanovsky opened 2 years ago

smolchanovsky commented 2 years ago

The header is not sent at the redirect by design. However, if the host is trusted (there is a token in IAccessTokens for it) the header can be sent.

smolchanovsky commented 2 years ago

Most likely, we will need to implement redirect handling outside of HttpClient. This means that we need to close this issue https://github.com/nclient/NClient/issues/432