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

Missing ReturnTo parameter when using with Shopware / Zend Framework #544

Closed
aWuttig opened this issue Jan 17, 2017 · 1 comment
Closed

Comments

@aWuttig
Copy link
Contributor

aWuttig commented Jan 17, 2017

Hey Guys,

i try to write an Shopware Plugin which provides SSO against different Platforms like Facebook, LinkedIn etc. Unfortunately i get stuck since 2 days into a problem with your session handling.

I call this 2 lines inside my controller action:

$linkedIn = new \SimpleSAML_Auth_Simple('linkedin');
$linkedIn->requireAuth();

When i execute this, something went wrong with the session inside SimpleSamlAuth, because on some time the ReturnTo parameter is not there anymore and i will get an exception:

Bad request received
There is an error in the request to this page. The reason was: Missing ReturnTo parameter.

I think the problem is the shopware system which uses Enlight a Fork from ZendFramework. I recognized that when i put the auth code to a part before the ZendFramework Sessions gets initialized it all works fine!

Is there a best practice how i should configure the session handling for SimpleSamlPhp?

@tvdijen
Copy link
Member

tvdijen commented May 10, 2018

I'm sorry nobody ever answered to this, but this isn't really a suitable place for support questions. We have mailing lists for that.
Anyway, if you still need to know about integrating SimpleSAMLphp with your application, please read this https://simplesamlphp.org/docs/stable/simplesamlphp-sp#section_6 and send questions https://simplesamlphp.org/lists

@tvdijen tvdijen closed this as completed May 10, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants