You are not logged in.
Pages: 1
Until some time ago, the following could be written:
CreateWithOwnModel([TAuthGroup, TFileAuthUser], {HandleUserAuthentication=} False, pmcRootName);
// Register authentication methods selectively
AuthenticationRegister(TRestServerAuthenticationDefault);
Now the following must not be forgotten to be added:
fPublishedMethodAuthIndex := ServiceMethodRegister('auth', Auth, {bypassauth=}true, [mGET]);
Couldn't the AuthenticationRegister function be extended and do it at the same time?
AuthenticationRegister(aMethod: TRestServerAuthenticationClass; pmRegisterAuthMethod: Boolean = True): TRestServerAuthentication;
With best regards
Thomas
Offline
My guess is that this is a regression.
The /auth method should be published whenever AuthenticationRegister() is called.
Please see https://github.com/synopse/mORMot2/commit/c762832e
Offline
Pages: 1