You are not logged in.
Pages: 1
Hi ab,
We are trying to introduce Mormot in our legacy system. To do this we must address the issue of authentication. We have our own tables that are similar to those generated by TSQLAuthUser but excluding some fields. We don't have fields GROUPRIGHTS and DATA. There is a way to define the desired structure without having to modify the class bases of Mormot?
Offline
First read https://synopse.info/files/html/Synopse … #TITLE_538
Then https://tamingthemormot.wordpress.com/2 … word-hash/
Then define your own authentication class, or even set the OnAuthenticationUserRetrieve event handler to return a "fake" TSQLUser, created on the fly from your legacy system information.
See https://synopse.info/files/html/api-1.1 … C_68DB10E9
Offline
I would need to implement 3 things
A descendant class of TSQLRestServerAuthenticationDefault implementing CheckPassword. Used for authentication in the server.
A descendant of TSQLAuthUser and implement ComputeHashedPassword.
Implement OnAuthenticationUserRetrieve to return the data of my users.
It's that correct?
Offline
If it does match the Database structure would only be necessary to implement ComputeHashedPassword?
Offline
Using MD5, not SHA256
Offline
Pages: 1