ZF-3925: Ability to override self URL on Zend_OpenId

Issue Type: Patch Created: 2008-08-11T09:41:49.000+0000 Last Updated: 2008-12-21T06:05:17.000+0000 Status: Resolved Fix version(s): - 1.7.1 (01/Dec/08)

Reporter: Ian Barber (ibarber) Assignee: Dmitry Stogov (dmitry) Tags: - Zend_OpenId

Related issues: Attachments: - trunk.diff


At the moment this fetches from the $_SERVER supervariable directly. It would be nice to have a $selfUrl static in the style of the $exitOnRedirect that allows the return url to be defined cleanly if it's different than expected.


Posted by Ian Barber (ibarber) on 2008-08-11T09:42:54.000+0000

Patch for zend_openid class with the above suggestion implement.

Posted by Dmitry Stogov (dmitry) on 2008-12-01T02:32:56.000+0000

Why do you need it? Doesn't the second argument of Zend_Consumer::login($id, $returnTo) work for you?

Posted by Ian Barber (ibarber) on 2008-12-01T03:02:43.000+0000

Because it assumes that the URL in the server variable is the URL that user is trying to auth against. It's a subtle condition, but it's we had it when the auth was being done on a different address than that user was viewing (the auth code was centrally located, but being used as a service by a number of different domains, for a shared sign on type solution).

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.