Return a custom ServiceStack response

I am using a custom CredentialsAuthProvider on a ServiceStack and it works fine. My only problem is that I would like to return more information to my AuthResponse . I use the following override for authentication with my custom provider:

 public override bool TryAuthenticate(ServiceStack.ServiceInterface.IServiceBase authService, string userName, string password) { // Authenticates user and adds values to session } 

The response I receive after a successful authentication is the "out of the box" response that the Auth plugin provides. Is there a way to add more values ​​or adjust the response on successful login? I do not see any overrides that would allow this to be done.

+4
source share

Source: https://habr.com/ru/post/1500218/


All Articles