Adding basic or digest auth is useful for taking care of the authentication cycle when using a JsonServiceClient.
But for consumers of the same services using a browser, this also means random (to the user) native (very strange looking) modal pop ups asking for a username and password.
I want to enable basic/ digest authentication for JsonServiceClient consumers only, for browsers I do not want the WWW-Authenticate response header added by SS.
Can I modify the AuthFeature to add headers based on request conditions or can I hook into the response event chain?
I’ve tried appHost.GlobalResponseFilters, but the response only has an AddHeader method.
I just realised that simply using JsonServiceClient.OnAuthenticationRequired to do a credentials post, is simpler and probably a more obvious solution.