Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session Problem #1

Open
manuelDistefano opened this issue Nov 13, 2017 · 2 comments
Open

Session Problem #1

manuelDistefano opened this issue Nov 13, 2017 · 2 comments

Comments

@manuelDistefano
Copy link

Hello Andreas and thank you for share this module.

I'm able to connect to my IsP and authenticate bu i have a problem with session, it's like the user is never into the current session. I tried also to modify the controller and use some magento function like setCustomerAsLoggedIn() etc without any fortune.

I cant understand if i need to use sspmod_magentostore_Store_Mage, the class (construct or other methods) are never called. Do i need particular configuration for use it?

Thank you

@AndreasJonsson
Copy link
Owner

Yes, you will have to use the session plugin to have simplesamlphp share session with magento. This is a plugin for simplesamlphp which you willl need to add to your simplesamlphp installation. See the comment in the Mage.php file for instructions:

https://github.com/AndreasJonsson/magento-simplesamlauth/blob/master/simplesamlphp/modules/magentostore/lib/Store/Mage.php

@manuelDistefano
Copy link
Author

Oh ok, now session work properly in some page (account, account edit information, etc) but not in others (cart for example).

In config.php i have:
'magento.store.magentodir' => '{{installation_path}}', 'store.type' => 'magentostore:Mage',

'magento.store.magentodir' exsist and is ok.

Plus i have
'session.phpsession.cookiename' => 'custom_session_saml', 'session.phpsession.savepath' => null, 'session.phpsession.httponly' => true,

Maybe i need some configuration here? Can you point me to the correct direction?^^

Tnx!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants