How to create cross-domain login for eZ Publish?

Author Message

Luis Cruz

Wednesday 23 March 2005 2:08:27 pm

Greetings all; I have a tricky situation I am trying to get a handle on and see if it can be done with eZ publish. Here is what I need to do.

I have two sites; let's call them www.foo.com and my.foo.com. eZ publish powers www.foo.com, while my.foo.com is powered by a separate system/code base. I want to manage a set of content in www.foo.com and restrict it to certain users.

my.foo.com already has its own user database and login procedure. What I need to do is to be able to have people be able to login on my.foo.com or www.foo.com and have the login be persistent across the domains.

Now, I think I have a decent high level view of how this should be done. These steps need to be taken:

* Create a new section in eZ publish and associate the content to be protected with this section.

* Setup the users/roles for that section to force a login to occur when it is accessed.

* Create a custom login handler that will interface with the my.foo.com authentication system. This handler will set the cookies and/or session variables needed by both systems to ensure that the user is logged into both systems.

What I am uncertain of is this. Will creating this custom login handler break the existing authentication system for the CMS/admin side of eZ publish?

How far off base am I on the above? Any links, tips, etc. would be greatly appreciated.

Thanks in advance.

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

eZ debug

Timing: Jan 19 2025 06:24:50
Script start
Timing: Jan 19 2025 06:24:50
Module start 'layout'
Timing: Jan 19 2025 06:24:50
Module start 'content'
Timing: Jan 19 2025 06:24:51
Module end 'content'
Timing: Jan 19 2025 06:24:51
Script end

Main resources:

Total runtime0.6586 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 589.2891152.6406
Module start 'layout' 0.00740.0033 741.929739.4922
Module start 'content' 0.01080.6463 781.4219404.6484
Module end 'content' 0.65710.0015 1,186.07038.1250
Script end 0.6586  1,194.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4933160.0002
Check MTime0.00130.1985160.0001
Mysql Total
Database connection0.00170.261110.0017
Mysqli_queries0.617593.7548460.0134
Looping result0.00050.0693440.0000
Template Total0.623594.720.3117
Template load0.00210.311420.0010
Template processing0.621494.353720.3107
Template load and register function0.00010.015810.0001
states
state_id_array0.00120.184010.0012
state_identifier_array0.00100.157120.0005
Override
Cache load0.00170.2547130.0001
Sytem overhead
Fetch class attribute can translate value0.00070.099010.0007
Fetch class attribute name0.00070.110610.0007
XML
Image XML parsing0.00010.017310.0001
class_abstraction
Instantiating content class attribute0.00000.001110.0000
General
dbfile0.00080.1191100.0001
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs