WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: Is there a way to bypass the login, such as a guest account?

Re: Is there a way to bypass the login, such as a guest account?

by Thomas Vandahl-2 :: Rate this Message:

| View in Thread

On 20.01.12 04:57, David wrote:
>
> I actually need a seamless login as anonymous user,
> without entering any password.
> Thomas, could you
> elaborate on SessionValidator and TurbineSecurity.getAnonymousUser()?
> Thanks,

The starting point would be to use for example TemplateSessionValidator
instead of TemplateSecureSessionValidator.

The difference between the two is that the
TemplateSecureSessionValidator redirects to the login screen when it
detects a null user whereas the TemplateSessionValidator simply
continues with the anonymous user then. If you want to do additional
things in the session validator, you can use the source code of
TemplateSessionValidator to roll your own.

If you have further questions, feel free to ask.

Bye, Thomas.

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

 « Return to Thread: Is there a way to bypass the login, such as a guest account?