Search code examples
jquery-mobileoauth-2.0google-openid

Google OAuth with jquery mobile


I have a "Sign in to Google" button which hits an internal all url "/auth/google". This endpoint then sends a 302 to redirect to the proper Google Apps OAuth endpoint.

This works fine for the desktop version. But as jQueryMobile uses its own navigation scheme, it stops trying upon receiving the 302.

What can be done? Can I hook into the navigation somehow to force it to process the 302?


Solution

  • Looks like setting rel="external" on the link did the trick.