0

OAuth return_to URL with subdomain

Hi all,

I'm using Yahoo! OAuth for my web site, in which the content is organized by subdomain. Ideally, I'd like to have the return_to URL for the OAuth flow have the current subdomain in it, as it would be the simplest way to keep user experience consistent on our side.

What's odd is that Yahoo!'s OAuth service seems fine with me adding subdomains into the domain if my domain isn't verified; when I verify my domain, however, it gives me a 401 Unauthorized when I request an auth url passing a return url that has a subdomain in it. Is there some way I can have a verified URL and still be able to redirect back to subdomains?

Thanks,
Mat

2 Replies
  • Hi Mat,

    Currently we don't allow a domain and a subdomain to share one consumer
    key, so you have to register another consumer key for your subdomain.
    We may relax this requirement later though.

    Thanks,
    Yu Wang
    Yahoo! Membership Team
    0
  • Hi Yu,

    Thanks for the reply. Relaxing that requirement would be very helpful for us -- we have dynamically defined subdomains so it would be highly impractical for us to register a consumer for each one. As a workaround, we can have a redirect action on the base domain, but it would be lovely to not have to take that extra step.

    Thanks,
    Mat

    QUOTE (omiga @ Aug 6 2010, 02:50 PM) <{POST_SNAPBACK}>
    Hi Mat,

    Currently we don't allow a domain and a subdomain to share one consumer
    key, so you have to register another consumer key for your subdomain.
    We may relax this requirement later though.

    Thanks,
    Yu Wang
    Yahoo! Membership Team
    0

Recent Posts

in OAuth General Discussion YDN SDKs