Passing eZ session ID to keep user logged in

Author Message

Eirik Alfstad Johansen

Friday 15 September 2006 5:41:44 am

Hi,

I'm working on integrating eZ with a different system. One of the functions is a login procedure which consists of the following workflow:

1. The Foregin system posts a user id and password as XML data to an eZP extension URL.
2. The eZP extension checks if the login data is valid by attempting to login the user and returns an XML response to the Foreign system which says whether or not the user data was valid. If the user data was valid, the URL that the Foreign system should redirect to is also included.

My question is this: Is there any way (and how) to preserve the login by, for instance, passing a session id as a part of the return URL?

Thanks in advance !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Xavier Dutoit

Friday 15 September 2006 11:09:14 pm

Hi,

Have a look at the SSO (single sign on) new feature, it probably offers what you want.

X+

http://www.sydesy.com

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

Main resources:

Total runtime1.4539 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.0469152.6406
Module start 'layout' 0.00540.0025 740.687539.4766
Module start 'content' 0.00791.4442 780.1641528.0469
Module end 'content' 1.45210.0018 1,308.21098.1250
Script end 1.4539  1,316.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2133160.0002
Check MTime0.00130.0863160.0001
Mysql Total
Database connection0.00070.051110.0007
Mysqli_queries1.406096.7023540.0260
Looping result0.00050.0377520.0000
Template Total1.416297.420.7081
Template load0.00220.149420.0011
Template processing1.414097.252420.7070
Template load and register function0.00010.007210.0001
states
state_id_array0.00120.080110.0012
state_identifier_array0.00200.140020.0010
Override
Cache load0.00180.1223150.0001
Sytem overhead
Fetch class attribute can translate value0.00110.074220.0005
Fetch class attribute name0.00150.106240.0004
XML
Image XML parsing0.00110.075320.0005
class_abstraction
Instantiating content class attribute0.00000.000540.0000
General
dbfile0.00100.0678220.0000
String conversion0.00000.000540.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs