By default, ServiceStack returns http status 401 when I try to call anything before authorization.
How do I return http status 200 and my DTO instead of that?
Ideally, I want to show boolean NeedAuth=true flag in ResponseStatus application wide, if I try calling anything unauthorized.
I’ve modified my previously created custom AuthProvider.
Now if I call anything before authentication or try to provide wrong credentials, I get HTTP 200 OK status and this response:
I’ve extended AuthResponse:
And modified my custom AuthProvider inherited from CredentialsAuthProvider: