Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Comment: | {1919} fixed documentation about TSQLRestServerAuthentication.GetUser() |
---|---|
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
3f1ffca63a866cebe8330775e8be4d6f |
User & Date: | ab 2015-09-25 11:59:40 |
2015-09-25
| ||
13:23 | {1920} updated framework documentation about TNullable* types check-in: a05845bd7a user: ab tags: trunk | |
11:59 | {1919} fixed documentation about TSQLRestServerAuthentication.GetUser() check-in: 3f1ffca63a user: ab tags: trunk | |
11:49 | {1918} fixed cross-platform StringToJSON() function - thanks Witya for the patch! check-in: ebadc23bcc user: ab tags: trunk | |
Changes to SQLite3/mORMot.pas.
13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 |
// client is not an end-user application but a mORMot server (in a cloud // architecture), since it would benefit from local ORM cache // - you can override this method and return an on-the-fly created value // as a TSQLRestServer.SQLAuthUserClass instance (i.e. not persisted // in database nor retrieved by ORM), but the resulting TSQLAuthUser // must have its ID and LogonName properties set with unique values (which // will be used to identify it for a later call and session owner // identification), and its GroupRights property must contain a REAL // TSQLAuthGroup instance for fast retrieval in TSQLRestServer.URI // - another possibility, orthogonal to all TSQLRestServerAuthentication // classes, may be to define a TSQLRestServer.OnAuthenticationUserRetrieve // custom event function GetUser(Ctxt: TSQLRestServerURIContext; const aUserName: RawUTF8): TSQLAuthUser; virtual; /// create a session on the server for a given user // - this default implementation will call fServer.SessionCreate() and |
| | > |
13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 |
// client is not an end-user application but a mORMot server (in a cloud // architecture), since it would benefit from local ORM cache // - you can override this method and return an on-the-fly created value // as a TSQLRestServer.SQLAuthUserClass instance (i.e. not persisted // in database nor retrieved by ORM), but the resulting TSQLAuthUser // must have its ID and LogonName properties set with unique values (which // will be used to identify it for a later call and session owner // identification), and its GroupRights property must not yet contain a real // TSQLAuthGroup instance, just a TSQLAuthGroup(aGroupID) value (as directly // retrieved from the ORM) - TAuthSession.Create will retrieve the instance // - another possibility, orthogonal to all TSQLRestServerAuthentication // classes, may be to define a TSQLRestServer.OnAuthenticationUserRetrieve // custom event function GetUser(Ctxt: TSQLRestServerURIContext; const aUserName: RawUTF8): TSQLAuthUser; virtual; /// create a session on the server for a given user // - this default implementation will call fServer.SessionCreate() and |
Changes to SynopseCommit.inc.
1 |
'1.18.1918'
|
| |
1 |
'1.18.1919'
|