How to bind session to a newly logged in session

2009-02-09 Thread Joshua Oransky
Hello, I am logging in users via the Repository.login method which returns me a JCR session. How do I bind this new authorized session so that if I call currentNode.getSession() it returns me the authorized one and not the anonymous one from before? Or do I have to store the JCR

Re: How to bind session to a newly logged in session

2009-02-09 Thread Felix Meschberger
Hi Josh, Joshua Oransky schrieb: > I am logging in users via the Repository.login method which returns > me a JCR session. How do I bind this new authorized session so that if I > call currentNode.getSession() it returns me the authorized one and not > the anonymous one from before? > > O

Re: How to bind session to a newly logged in session

2009-02-12 Thread Douglas José
Hello Joshua, You can authenticate the JCR session by adding the parameter "sling:authRequestLogin" (details in [1]) to a request. So, for instance, you can access your content with the URL http://localhost:/content/mynode.html?sling:authRequestLogin and the user will be prompted by credenti

Re: How to bind session to a newly logged in session

2009-02-22 Thread Joshua Oransky
I tried that ?sling:authRequestLogin but since anonymous does not have read access to that node I get a 404. The problem is even when I log into the CRX content explorer with a username that has access to my node, I still get a 404 if I try to surf it as this user. How can I make the authen

Re: How to bind session to a newly logged in session

2009-02-22 Thread Felix Meschberger
Hi Josh, Joshua Oransky schrieb: > I tried that ?sling:authRequestLogin but since anonymous does not have > read access to that node I get a 404. The problem is even when I log > into the CRX content explorer with a username that has access to my > node, I still get a 404 if I try to surf it as th

Re: How to bind session to a newly logged in session

2009-02-23 Thread Douglas José
Hi, The Sling bundled with CRX 1.4.1 has no support to the 'authRequestLogin' parameter. You need to update CRX following the instructions in this page: http://dev.day.com/microsling/content/blogs/main/updatecrxqs.html (take a look in the comments before start, things have changed a bit if you're