[Code] Changing host of OP, retain claimed_id
Jason Young
jason.young at extension.org
Sat Jul 18 13:01:04 UTC 2009
Wanted to follow up on this for the archives, a few days later I switched
gears on this and..
On Wed, Jul 8, 2009 at 11:55 AM, Jason Young <jason.young at extension.org>wrote:
> Hi folks,
> I'm running into a devil of a problem with my OP, that I can't seem to get
> solved and straight.
>
[...]
What I ended up doing with this is just delegation.
The old virtual hosts proxies requests using mod_rewrite to a delegation
method in the application running at the new virtual host that just points
to the endpoint and the local_id of the new virtual host.
e.g. for demo:
http(s)://people.demo.extension.org/[blah]
=>
RewriteCond %{REQUEST_URI} !.*images.*
RewriteCond %{REQUEST_URI} !.*stylesheets.*
[...] bunch of other controller exceptions
RewriteRule ^/(.*)
http://pubsitedev.extension.org/opie/delegate/$1 [L,P]
=> HTTP/1.1 200 OK
...
<link rel="openid2.provider openid.server" href="
https://pubsitedev.extension.org/opie" />
<link rel="openid2.local_id openid.delegate" href="
https://pubsitedev.extension.org/people/jayoung" />
I have to maintain a virtual host configuration for perpetuity that does the
proxy, and I had to write a controller method to handle the proxy request
(and give it knowledge about the host names for the endpoint and local_id) -
but that's a relatively small price to pay for working :-)
Jason
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jason Young -- Systems Manager, eXtension
http://about.extension.org/wiki/Jason_Young
______________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openid.net/pipermail/openid-code/attachments/20090718/804fbc09/attachment.htm>
More information about the Code
mailing list