AnsweredAssumed Answered

How does PHP authentication work?

Question asked by AndyJohnson on Jun 27, 2011
Latest reply on Jun 27, 2011 by AndyJohnson

Title

How does PHP authentication work?

Your post

Hi there,

I'm confused about how to make web authentication work with the php web publishing engine in FMS11.  I want FMS11 to authenticate various different users.  So I created accounts in the db with passwords with the various privileges:

[Guest]  - [Data Entry Only]

Worker - [Read-Only Access]

Admin - [Full Access]

and the fmphp extended privilege is set for all three - [Full Access], [Read-Only Access], [Data Entry Only]

It looks like the fmphp extended privilege has to be turned on for anything to work.  But if I allow [Guest], then anyone can access the database and view, search, delete, and edit the records as they see fit without entering a password even though [Guest] is set at [Data Entry Only].  (why is this?) On the other hand, if I disable [Guest], then the "home" page appears blank as if the php engine encountered an error.

I'm using the FM PHP Site Assistant to create my pages but it looks like I'm going to have to learn a bunch of PHP.  Do I have to disable [Guest] and add some authentication code on the "home" page?  If so, where do I learn the syntax for prompting and sending authentication to FMS?

Outcomes