Wednesday 23 December 2009 2:23:38 am - 6 replies

» Read full tutorial

Introduction

Sometimes, during a web application development, you need to interface with your client's software(s) and/or websites in order to keep a common and coherent session within its applicative environment. To do this, it is often useful to use a special tool : SSO (Single Sign On). This article illustrates one way of integrating an eZ Publish based web application into an existing SSO architecture

Author Message

SEBBANE Alexandre

Saturday 26 December 2009 11:18:01 am

I have just publish a little example for sso_handler : bpce_acces. It consists of an SSO Handeler based on client IP.

Paris, France

Jianjun Hu

Saturday 26 December 2009 3:28:39 pm

I'm looking forward your article.

OnlyBlue

☆..·°∴°.☆°°.☆°.
°∴ °☆ .·enjoy star° .·★°∴°
∴°.°★ .·°
  ミ☆°∴°.★☆° ∴·°
°.☆° .·∴° 

Is it a pleasure after all to practice in due time what one has learnt?

Nicolas OTTAVI

Tuesday 06 July 2010 1:40:15 am

Hi,

Thanks for this tutorial, I have implemented a SSO and it works fine. But it seems the SSOHandler is called everytime a page is loaded. I am wondering if I am doing something wrong, as I think the call is need only when the current user is Anonymous.

Is there a way to stop the SSOHandler call when a user is already logged in ?

Or should I put this "logic" in the SSOHandler::handleSSOLogin() method?

Thanks for the answer.
Nico O

Jérôme Vieilledent

Tuesday 06 July 2010 3:15:18 am

Hi Nicolas

SSOHandler will be called every time a page is loaded if your user is not logged in, as SSO is handled in eZUser::instance() method.

Once your user is logged in, it won't be called any more. So maybe you should add some logic in your SSOHandler::handleSSOLogin() in order not to call your login webservice (or other SSO stuffs) if you are not logging in.

Gaetano Giunta

Tuesday 06 July 2010 8:26:14 am

Otoh if you want also SingleSignOff, your code should be called on every page, for both logged-in and anon users. eZ Publish does not currently support that afair, but it is a requirement seldom see in real life...

Principal Consultant International Business
Member of the Community Project Board

Hamadou BABA

Wednesday 09 February 2011 9:30:14 am

Hi Nicolas,

I could learn from this forum that you're successful in implementing SSO. That isn't my case. I would greatly appreciate if you can post me the code you implemented. I used the SPNEGO projet but I'm still unable to get it working as designed for.

Thanking you in advance.

You must be logged in to post messages in this topic!

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 28 2025 14:01:05
Script start
Timing: Jan 28 2025 14:01:05
Module start 'layout'
Timing: Jan 28 2025 14:01:05
Module start 'content'
Timing: Jan 28 2025 14:01:05
Module end 'content'
Timing: Jan 28 2025 14:01:05
Script end

Main resources:

Total runtime0.0345 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 595.1797151.2109
Module start 'layout' 0.00520.0022 746.390636.6484
Module start 'content' 0.00740.0252 783.0391102.7266
Module end 'content' 0.03260.0018 885.765637.9922
Script end 0.0344  923.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00236.6001140.0002
Check MTime0.00113.2083140.0001
Mysql Total
Database connection0.00092.563410.0009
Mysqli_queries0.00236.694230.0008
Looping result0.00000.037410.0000
Template Total0.00133.710.0013
Template load0.00102.972410.0010
Template processing0.00020.676810.0002
Override
Cache load0.00071.941910.0007
General
dbfile0.013338.554280.0017
String conversion0.00000.017340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs