You are not logged in.
Pages: 1
How is it possible to authenticate the server to get access to the database?
For example the project 19 with the FishFacts.
If I turn on the authentication, how the server get access to the database?
Turn on the authentication:
DB := TSQLRestServerDB.Create(Model,fDatabaseFileName, true);
Now the question, how the server gets access to the database. If i have a client, the client gets this authentication-code:
TSQLHttpClient(Form1.Database).SetUser(StringToUTF8('User'),StringToUTF8('synopse'));
How is this possible on server side?
Offline
The authentication is only for the client side.
Code on the server side is always authenticated.
I do not understand exactly your question.
AFAIR "project 19 with the FishFacts" uses the DB from a client.
If you need authentication on the server process, you can either
- use TSQLRestClientDB
- or run TSQLRestServer.ExportServer and TSQLRestClientURIDll as client.
But sounds like a weird request, as you formulated it.
I'm not sure your question is clear enough to be properly answered.
Offline
Pages: 1