- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class OAuthCallbackServlet
extends InjectedServlet
Servlet to act as our OAuth callback URL. When gadget authors register a consumer key with an
OAuth service provider, they can provide a URL pointing to this servlet as their callback URL.
Protocol flow:
- gadget discovers it needs approval to access data at OAuth SP.
- gadget opens popup window to approval URL, passing URL to this servlet as the oauth_callback
parameter on the approval URL.
- user grants approval at service provider
- service provider redirects to this servlet
- this servlet closes the window
- gadget discovers the window has closed and automatically fetches the user's data.
- See Also:
- Serialized Form