Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Authentication : Can't Figure It Out At All

Quote Reply
Authentication : Can't Figure It Out At All
Hello ...

There seems to be something missing -- either from the DbmanSQL manual or from my brain. Hopefully, somebody here can show me that a brain defect is the only reason why I can't set a reasonable authentication method.

This is what we need to do ...

1. No authentication for ordinary users, who may view all records

2. Authentication for anyone who wants to add a record. These registered users should be able to login to view all records, add new records, edit and delete their own records.

3. Normal entry to the database should be a home page with options including search, not a login page.

4. There should be a 'login to edit' button in the footer of each page.

In other words, we must not require authentication for default users, but we must have authentication for registered users who have database modification permissions.

Sounds easy and obvious ... but this is what actually happens with these settings ...

auth_allow_default = View
auth_signup = Yes
auth_signup_permissions = View, Add, Delete, Modify
auth_modify_own = Yes
auth_view_own = No

a) We set auth_no_authentication = Yes (because default users should not be authenticated).
Now everybody can view the records, but logged-in registered users get exactly the same page as default users -- they can't add, modify or delete, even after they have logged in. Inserting explicit parameters to the URL, eg: db=ourDB&do=add_form&uid=arthur (where 'arthur' is a registered user with 1,1,1,10 permissions) results only in a message saying You don't have permission to add

b) We set auth_no_authentication = No
Now registered users can do what they expect to do, but ordinary users have to sign up before they can see the database ... which is 100% unacceptable, for us and for them.


GT: Even though these things are not explained in the manual, the balance of probablity is that we can do it -- we just haven't figured it out. Nevertheless, we would like some reassurance that we have not bought the wrong program.
Quote Reply
Re: [YoYoYoYo] Authentication : Can't Figure It Out At All In reply to
Try setting auth_no_authentication to no and auth_allow_default to view. Then, when you want to provide view-only access to a guest or default visitor, pass uid=default in the url. It's a little awkward, I know, but that's the only way I've been able to accomplish what I think you want to do. With these settings, passing uid=default in the url bypasses the need for a login and simply provides "default" access based on auth_allow_default permissions. Hope that helps.

Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund
Quote Reply
Re: [hennagaijin] Authentication : Can't Figure It Out At All In reply to
Thanks hennagaijin ... your suggestion has helped to solve the immediate difficulty ...

uid=default brings up the login page (that is what was confusing me)

but uid=default&do=search_form works for a default user, as I had hoped. Seems we have to pass in an action as well as a default uid ... if that is in the manual, it is buried deep ...
Quote Reply
Re: [YoYoYoYo] Authentication : Can't Figure It Out At All In reply to
Glad you've got it working. You should also always pass a value for db. So your "home page" could become:

http://www.example.com/...home&uid=default

With a link to search your database at:

http://www.example.com/...form&uid=default

etc.

Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund