I use OpenID just like here in StackOverflow to authenticate my users. However, I really need to be able to work with OpenID in all subdomains of my site.
The site behaves the same as Kijiji, as each region has its own subdomain.
- calgary.example.com
- toronto.example.com
- vancouver.example.com
- etc.
When a user logs in to calgary and later writes to toronto, they will be forced to "give permission" to the provider, which will lead to a new OpenID and, as a result, also to a new login.
My application may have several OpenIDs under one account, but this will become cumbersome to manage.
Is there a way to connect the provider with the top-level domain and subsequently work in all subdomains?
I am using DotNetOpenAuth.
It seems to me that I should always force the user to log in to http://example.com , and then use the domain = ".example.com" form authentication to allow navigation across all subdomains.
source share