From: Adam R. <ad...@ex...> - 2013-11-25 22:19:04
|
For what your asking Florent, the basics are to use xmldb:login to log in a user in your XQuery (probably from a HTML form submission), if your in a web-context this user will be automatically associated with the web browsers session and will persist until you logout or the session expires. If there is no user logged in then the user will be the 'guest' user, you can check this by calling xmldb:get-current-user() On 25 November 2013 20:13, Florent Georges <li...@fg...> wrote: > Hi, > > I went to the documentation page "Security" [1], but do not see how > this fits exactly with the web applications in eXist. That page > mentions an authentication URL, as well as an authentication event > listener, but I am not sure how to use them or have them fired from > within my webapp. > > Maybe I missed another documentation page? (I did not find anything > in the other pages related to development) > > What I'd like to do precisely is to have a login page so the user > can login using an eXist user. There would be a logout button as well > (so HTTP authentication is not really suitable). And every query, > fired from a request sent by the browser whilst the user is logged in, > would be executed by eXist with that user. > > Is there any other document I could read? Any library to use? Any > example/existing code to inspect? > > Regards, > > -- > Florent Georges > http://fgeorges.org/ > http://h2oconsulting.be/ > > [1] http://exist-db.org/exist/apps/doc/security.xml > > > > ------------------------------------------------------------------------------ > Shape the Mobile Experience: Free Subscription > Software experts and developers: Be at the forefront of tech innovation. > Intel(R) Software Adrenaline delivers strategic insight and game-changing > conversations that shape the rapidly evolving mobile landscape. Sign up now. > http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |