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
We have a setup where a wcf client connects to a mandatory gateway application using Basic Authentication. The request is then forwarded to a third party service which uses WS-Security. Both have 2 different username/password values.
Until now I was only able to make this work by configuring the client to use Basic Authentication and then to add the WS-Security header manually.
Is there a better way to achieve this in (.NET9) code?
I'm using a custom binding which contains the BindingElement created by:
We have a setup where a wcf client connects to a mandatory gateway application using Basic Authentication. The request is then forwarded to a third party service which uses WS-Security. Both have 2 different username/password values.
Until now I was only able to make this work by configuring the client to use Basic Authentication and then to add the WS-Security header manually.
Is there a better way to achieve this in (.NET9) code?
I'm using a custom binding which contains the BindingElement created by:
The client's Basic Authentication UserName credentials are then set like so:
But then I'm stuck with setting the WS-Security UserName credentials (except when manually adding the header).
Is there a way to specify 2 different UserName credentials? One for Basic Authentication and one for WS-Security?
The text was updated successfully, but these errors were encountered: