0

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?

Dan Friedman
  • 4,941
  • 2
  • 41
  • 65

1 Answers1

0

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).

Miguel Andres
  • 1,410
  • 11
  • 11
  • Yea, I'm using the OAuthWebSecurity library, which sits on top of the dotnetopenauth library. It looks like I'm going to need to override a bunch of code to get this to work. With Facebook, I just logged in and changed the associated domain. This change will be more involved. Thanks for your help. – Dan Friedman Nov 04 '13 at 21:11