How to automate login for restricted area ?

Author Message

Vitaly Puzrin

Thursday 13 April 2006 7:45:23 am

Hi all.

At my site, we use external autentification (from forum base) with custom loginhandler, placed in extention.

So, when user goes to restricted area, he is asked to enter the same login/password, from invision power board accout.

The Idea is to simplify this prosess, because we have access to forum cookies. I'd like to have compleately transparent authentification, if user is logged into forum. Without additional login dialog for EZ.

Does anybody know how to do it properly ?

We've tryed to insert custom operator (wich implement autologin) in the begining of pagelayout.tpl. But the problem is, that module content is rendered BEFORE autologin operator runs. So, when user goes to protected area, he get "access error" in the first time.

How to solve such problem?

(*) We'd like co call autologin only for restricted area, now for all site pages.

Ɓukasz Serwatka

Monday 17 April 2006 11:43:32 pm

Hi,

Take a look at this contribution, it contains some ideas.
http://ez.no/community/contribs/hacks/cookie_user

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.