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
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
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
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
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
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