But this doesn't work, always getting 401 back from the WebAPI. If I revert the filter and request header to "Bearer" (leaving the options.AuthenticationType set to Whatever), it works again.
Any idea what I might be doing wrong or isn't it supposed to work this way?
It seems like passing the option
AuthenticationType
is ignored and always results in "Bearer" being used.I'm doing:
Then, I change the filter for the WebAPI to:
and change the request header to:
But this doesn't work, always getting 401 back from the WebAPI. If I revert the filter and request header to "Bearer" (leaving the
options.AuthenticationType
set toWhatever
), it works again.Any idea what I might be doing wrong or isn't it supposed to work this way?