Customer login handler & cross-site login?

Author Message

Luis Cruz

Tuesday 15 November 2005 12:41:43 pm

I have been reading up and browsing the source code on custom login handlers. I currently have a large database of users outside of eZ publish and objects that they can manipulate based on their access level. They do this through a domain like my.foo.com.

Now, I would like to store documents, etc. in eZ publish and restrict access to them based on the access level stored in the non-ez database. They would access these documents through a domain like docs.foo.com.

I believe I understand the concepts on how to achieve this, but there is one sticking point I cannot seem to find an answer for. The customer login handlers provided with eZ publish all create a user inside eZ publish.

However, this seems like a bit of a waste to have the data in two places. I would like to be able to log the user into both my systems yet keep the login data in my non-ez database.

I am thinking that I could "fake" the eZ login by creating a generic user in ez for each access level. When the user successfully logs into the docs.foo.com domain via the custom login handler, the login handler would log the user in as this generic user rather than creating a new user entry in the ez database.

The only drawback I can think of is that if one user logs out, then all users under that generic user might be logged out. Can the more experienced ez users think of any other drawbacks or provide some alternate solutions?

Thanks.

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 18 2025 22:23:41
Script start
Timing: Jan 18 2025 22:23:41
Module start 'layout'
Timing: Jan 18 2025 22:23:41
Module start 'content'
Timing: Jan 18 2025 22:23:42
Module end 'content'
Timing: Jan 18 2025 22:23:42
Script end

Main resources:

Total runtime0.8991 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.0072 589.4609152.6406
Module start 'layout' 0.00720.0037 742.101639.4766
Module start 'content' 0.01090.8869 781.5781404.7344
Module end 'content' 0.89780.0012 1,186.31258.1250
Script end 0.8990  1,194.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3732160.0002
Check MTime0.00130.1467160.0001
Mysql Total
Database connection0.00090.098110.0009
Mysqli_queries0.855995.2010460.0186
Looping result0.00050.0571440.0000
Template Total0.865696.320.4328
Template load0.00200.226520.0010
Template processing0.863696.056320.4318
Template load and register function0.00020.017610.0002
states
state_id_array0.00100.108510.0010
state_identifier_array0.00090.096620.0004
Override
Cache load0.00170.1859100.0002
Sytem overhead
Fetch class attribute can translate value0.00060.063610.0006
Fetch class attribute name0.00080.092810.0008
XML
Image XML parsing0.00010.012110.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00070.0726100.0001
String conversion0.00000.001240.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