Where can I find documentation on configuration

Asked by Helmut Hummel

I want to use Chive as a module of an existing web-application. The database connection/ credentials of this app are configured and are available on PHP level. What would be the suggested way to use these credentials for Chive to show only the tables of the database used for that application?

Question information

Language:
English Edit question
Status:
Answered
For:
chive Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
David Roth (davrot) said :
#1

The easiest way which works out of the box is to use authenticate via url.
You can use the following schema to login to a specific db with a certain user/pw:

http://localhost/chivev/?host=localhost&username=YOUR_USER&password=YOUR_PW&database=YOUR_DB

This has obviously the downside that the credentials are not hidden so depending on your security needs this may or may not be a suitable solution.

We do not have a built in mechanism for authenticate via code, although this would not be a hard to implement.

Revision history for this message
David Roth (davrot) said :
#2

Also have a look at this older post on the topic: https://answers.launchpad.net/chive/+question/127192 where I have posted a hands-on for changing the index.php so that chive authenticates via code.

Can you help with this problem?

Provide an answer of your own, or ask Helmut Hummel for more information if necessary.

To post a message you must log in.