#1 2014-08-13 05:18:22

Pyjama
Member
Registered: 2014-07-07
Posts: 9

Authentication by Server-Side

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

#2 2014-08-13 07:11:08

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,206
Website

Re: Authentication by Server-Side

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

Board footer

Powered by FluxBB