token auth on devel branch

bugant <[email protected]> Fri, 23 Sep 2005 18:38:20 +0200
Newsgroups gmane.comp.apache.mod-survey.general,gmane.comp.apache.mod-survey.devel
Message-ID <[email protected]>
hi all,
  I've just committed a new auth type for mod_survey devel branch.
It's the token auth we've talked about several times :)
I don't test it very much but it seems to work fine.
It's implemented to work with a file by now. I'll extend it
to work with db too.

That's how you can use it:

<SECURITY REQAUTH="no">
                 <ANSWER LEVEL="open"/>
                 <DATA LEVEL="user"/>
                 <TOKENAUTH
                    USERFILE="/home/bugant/public_html/test/auth/test"
		   TOKENARG="token"
</SECURITY>

so for example if you want to access to this survey's data you must add 
token to the query string and specify a valid token (i.e. a token that 
is in user file):

http://blablba/survey.survey?action=data&token=bugant

this type of auth is not very usefull for access data by the way... you 
can use it as you prefer.

test && enjoy TOKENAUT ;)

let me know for any bugs/problems.

stay tuned,
bugant.
Skickat av bugant <[email protected]>
till survey-discussion