Pregunta

I am using dotnetopenauth to let my users log in via Google. By default, I didn't need any kind of API key or anything, so I just went with that. Now, I need to move the site to a subdomain. I realize now that doing this causes Google to return back a different URL/ID.

How can I tell Google to return the same URLs/IDs regardless of the calling (sub)domain?

¿Fue útil?

Solución

Have you tried using the wildcard operator in the openid.realm definition?

For example, if your current domain is mydomain.com and you want to move your site to subdomain.mydomain.com, you could set the openid.realm parameter to *.mydomain.com (provided that your new openid.realm matches the openid.return_to parameter of the request - see Google's OpenID dev docs for more details).

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top