You are not logged in.
Pages: 1
Hello Everybody,
I've implemented a custom authentication procedure through TSQLRestServer.OnAuthenticationUserRetrieve, and it is working fine.
The thing is that I would like to have some control on the message that gets sent to the users when the authentication fails for any reason. When the authentication fails the sever returns a StatusCode 403 and content with the message "Forbidden".
I would like to be able to change the message to "Invalid Username", "Wrong Password", "Account inactive", etc. I've looked at TSQLRestServer.OnAuthenticationFailed but it doesn't allow for changing the returned message.
It is necessary to subclass TSQLRestServer to change this behaviour or I'm missing something?
Regards,
Mane
Offline
Thank you Ab!
Regards,
Mane
Offline
Pages: 1