You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Andrew Golightly <A....@dcs.shef.ac.uk> on 2006/04/05 13:25:34 UTC

Re: how do i use access control for the live area in 1.4?

Unfortunately I don't have the answer. But I am currently working on the 
exact same thing. :) So..

1) Having a login link on the live page. That once authentication takes 
place, would ideally be replaced with, say,  'logged in as Andrew'
2) Have only the menu items displayed where a user has access to the 
associated docs.

So jörn if you've worked out any of these things since you last posted 
this (ages ago now :)), please share!

thanks,
Andrew

Jörn Nettingsmeier wrote:

> hi everyone!
>
>
> what is the correct way to provide a "login" link in the live area 
> that will allow visitors to view restricted content or have different 
> menus displayed to them based on their ac rights?
>
> i tried this url:
>
> http://localhost:8888/unidue/live/notizen.html?lenya.usecase=ac.login
>
> it displays a login window, but after i authenticate, i get this:
>
> http://localhost:8888/unidue/live/notizen.htmlnull
>                this is weird------------------^^^^
>
> the body of that page says "The requested document '/notizen.html' 
> with document-id '/notizen' does not exist."
> the page does exist, it's the one i started from.
>
>
> regards,
>
> jörn
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: how do i use access control for the live area in 1.4?

Posted by Andrew Golightly <A....@dcs.shef.ac.uk>.
Of course! Thanks :)

A

Thorsten Scherler wrote:

>El vie, 07-04-2006 a las 11:56 +0100, Andrew Golightly escribió:
>  
>
>>Jörn Nettingsmeier wrote:
>>
>>    
>>
>>>>>>hi everyone!
>>>>>>
>>>>>>
>>>>>>what is the correct way to provide a "login" link in the live area 
>>>>>>that will allow visitors to view restricted content or have 
>>>>>>different menus displayed to them based on their ac rights?
>>>>>>
>>>>>>i tried this url:
>>>>>>
>>>>>>http://localhost:8888/unidue/live/notizen.html?lenya.usecase=ac.login
>>>>>>
>>>>>>it displays a login window, but after i authenticate, i get this:
>>>>>>
>>>>>>http://localhost:8888/unidue/live/notizen.htmlnull
>>>>>>               this is weird------------------^^^^
>>>>>>
>>>>>>the body of that page says "The requested document '/notizen.html' 
>>>>>>with document-id '/notizen' does not exist."
>>>>>>the page does exist, it's the one i started from.
>>>>>>            
>>>>>>
>>It looks like you have to append "&referrerQueryString=" to the login 
>>url to avoid 'null' being appended after you authenticate. This seems to 
>>work fine if you manually type it in, but if you hardcode that link as 
>>part of an xslt, I get this error msg:
>>
>>The reference to entity "referrerQueryString" must end with the ';' 
>>delimiter.
>>
>>    
>>
>
>That is because "&" is the start of an entity delimiter.
>Try
>&amp;referrerQueryString=...
>
>HTH
>
>salu2
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: how do i use access control for the live area in 1.4?

Posted by Thorsten Scherler <th...@wyona.com>.
El vie, 07-04-2006 a las 11:56 +0100, Andrew Golightly escribió:
> Jörn Nettingsmeier wrote:
> 
> >>>
> >>>> hi everyone!
> >>>>
> >>>>
> >>>> what is the correct way to provide a "login" link in the live area 
> >>>> that will allow visitors to view restricted content or have 
> >>>> different menus displayed to them based on their ac rights?
> >>>>
> >>>> i tried this url:
> >>>>
> >>>> http://localhost:8888/unidue/live/notizen.html?lenya.usecase=ac.login
> >>>>
> >>>> it displays a login window, but after i authenticate, i get this:
> >>>>
> >>>> http://localhost:8888/unidue/live/notizen.htmlnull
> >>>>                this is weird------------------^^^^
> >>>>
> >>>> the body of that page says "The requested document '/notizen.html' 
> >>>> with document-id '/notizen' does not exist."
> >>>> the page does exist, it's the one i started from.
> >>>
> It looks like you have to append "&referrerQueryString=" to the login 
> url to avoid 'null' being appended after you authenticate. This seems to 
> work fine if you manually type it in, but if you hardcode that link as 
> part of an xslt, I get this error msg:
> 
> The reference to entity "referrerQueryString" must end with the ';' 
> delimiter.
> 

That is because "&" is the start of an entity delimiter.
Try
&amp;referrerQueryString=...

HTH

salu2
-- 
Thorsten Scherler
COO Spain
Wyona Inc.  -  Open Source Content Management  -  Apache Lenya
http://www.wyona.com                   http://lenya.apache.org
thorsten.scherler@wyona.com                thorsten@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: how do i use access control for the live area in 1.4?

Posted by Andrew Golightly <A....@dcs.shef.ac.uk>.
Jörn Nettingsmeier wrote:

>>>
>>>> hi everyone!
>>>>
>>>>
>>>> what is the correct way to provide a "login" link in the live area 
>>>> that will allow visitors to view restricted content or have 
>>>> different menus displayed to them based on their ac rights?
>>>>
>>>> i tried this url:
>>>>
>>>> http://localhost:8888/unidue/live/notizen.html?lenya.usecase=ac.login
>>>>
>>>> it displays a login window, but after i authenticate, i get this:
>>>>
>>>> http://localhost:8888/unidue/live/notizen.htmlnull
>>>>                this is weird------------------^^^^
>>>>
>>>> the body of that page says "The requested document '/notizen.html' 
>>>> with document-id '/notizen' does not exist."
>>>> the page does exist, it's the one i started from.
>>>
It looks like you have to append "&referrerQueryString=" to the login 
url to avoid 'null' being appended after you authenticate. This seems to 
work fine if you manually type it in, but if you hardcode that link as 
part of an xslt, I get this error msg:

The reference to entity "referrerQueryString" must end with the ';' 
delimiter.

So yeah.. that's as far as I've got. Any further ideas appreciated.

Andrew

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: how do i use access control for the live area in 1.4?

Posted by Andrew Golightly <A....@dcs.shef.ac.uk>.
Michael Wechner wrote:

> Andrew Golightly wrote:
>
>> Unfortunately I don't have the answer. But I am currently working on 
>> the exact same thing. :) So..
>>
>> 1) Having a login link on the live page. That once authentication 
>> takes place, would ideally be replaced with, say,  'logged in as Andrew'
>
>
>
> I have something like (also multilingual) this implemented for the 
> Wiki publication
>
> https://svn.wyona.com/repos/public/lenya/pubs/defaultwiki
>
> but haven't finished it yet for the lack of time, but hope todo so 
> shortly ;-)

Great :) Looking forward to it! Let me/us know when u do.

>
>> 2) Have only the menu items displayed where a user has access to the 
>> associated docs.
>
>
>
> can you explain a bit more resp. give a concrete example?

So say we have an 'internal' page. And this page has subpages. And the 
'internal' page has 'AC Live' set so that only a certain group may view 
that page. (and importantly all the subpages.. which works right away. 
very nice.). It would be nice if the menu items associated with the 
internal pages are only viewable once a user has logged in.

thanks :)
A

>
> Thanks
>
> Michi
>
>>
>> So jörn if you've worked out any of these things since you last 
>> posted this (ages ago now :)), please share!
>>
>> thanks,
>> Andrew
>>
>> Jörn Nettingsmeier wrote:
>>
>>> hi everyone!
>>>
>>>
>>> what is the correct way to provide a "login" link in the live area 
>>> that will allow visitors to view restricted content or have 
>>> different menus displayed to them based on their ac rights?
>>>
>>> i tried this url:
>>>
>>> http://localhost:8888/unidue/live/notizen.html?lenya.usecase=ac.login
>>>
>>> it displays a login window, but after i authenticate, i get this:
>>>
>>> http://localhost:8888/unidue/live/notizen.htmlnull
>>>                this is weird------------------^^^^
>>>
>>> the body of that page says "The requested document '/notizen.html' 
>>> with document-id '/notizen' does not exist."
>>> the page does exist, it's the one i started from.
>>>
>>>
>>> regards,
>>>
>>> jörn
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: user-help@lenya.apache.org
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: how do i use access control for the live area in 1.4?

Posted by Michael Wechner <mi...@wyona.com>.
Andrew Golightly wrote:

> Unfortunately I don't have the answer. But I am currently working on 
> the exact same thing. :) So..
>
> 1) Having a login link on the live page. That once authentication 
> takes place, would ideally be replaced with, say,  'logged in as Andrew'


I have something like (also multilingual) this implemented for the Wiki 
publication

https://svn.wyona.com/repos/public/lenya/pubs/defaultwiki

but haven't finished it yet for the lack of time, but hope todo so 
shortly ;-)

> 2) Have only the menu items displayed where a user has access to the 
> associated docs.


can you explain a bit more resp. give a concrete example?

Thanks

Michi

>
> So jörn if you've worked out any of these things since you last posted 
> this (ages ago now :)), please share!
>
> thanks,
> Andrew
>
> Jörn Nettingsmeier wrote:
>
>> hi everyone!
>>
>>
>> what is the correct way to provide a "login" link in the live area 
>> that will allow visitors to view restricted content or have different 
>> menus displayed to them based on their ac rights?
>>
>> i tried this url:
>>
>> http://localhost:8888/unidue/live/notizen.html?lenya.usecase=ac.login
>>
>> it displays a login window, but after i authenticate, i get this:
>>
>> http://localhost:8888/unidue/live/notizen.htmlnull
>>                this is weird------------------^^^^
>>
>> the body of that page says "The requested document '/notizen.html' 
>> with document-id '/notizen' does not exist."
>> the page does exist, it's the one i started from.
>>
>>
>> regards,
>>
>> jörn
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>


-- 
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner@wyona.com                        michi@apache.org
+41 44 272 91 61


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org