Closed
Setting Response Code in response from authentication activity for a rest service package.
Hi
I am invoking a custom authentication from a service package and setting a failed challenge stream in case of failure. All works fine but the response in the return still shows response code of 200. I want it to be 401. How can we control the response code returned from authentication activity?
If we don't set challenge stream then response code is getting set as 401.
Hi,
I think since you're handling the authenticaiton failure in a html stream, so it is just redirecting or rendering the html stream on failure and hence you will not get 401 unauthorized error code. You might have to remove the challenge stream handling for authentication.
Thanks,
Habeeb Baig