hanging while trying to create new user with SSO

Author Message

David Wirth

Tuesday 28 June 2011 12:51:52 pm

I have a class that extends eZUser to accommodate a secondary login handler. It includes a function that creates an eZ user object for an authenticated user who is logging in for the first time. It works absolutely fine when called as part of the login process.

I am working on a SSO handler. I want for it to likewise create an eZ user content object if one doesn't exist for an authenticated user. When I call the function to create the user from the SSO handler, the system hangs. Through troubleshooting I traced the problem to where the content object is instantiated.

$class = eZContentClass::fetch( $userClassID );
$contentObject = $class->instantiate( $userCreatorID, $defaultSectionID ); //this is the line that causes the hang

Does anyone have any guesses as to what is different about the SSO process that is causing this script to fail?

Matthieu Sévère

Tuesday 28 June 2011 1:36:38 pm

Hey David,

 

Sorry I don't have any clue about this. Just want to say that I made the exact same process (user creation in SSO and login of just created user) and it works fine !

Any errors in log that could help ?

--
eZ certified developer: http://ez.no/certification/verify/346216

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