Key Class
org.apache.shindig.gadgets.servlet.OAuth2CallbackServlet
Serves as the redirect_uri endpont for the Authorization Code flow.
Extending
Callback/Redirect process can be extended by changing the OAuth2Store implementation or injecting a new AuthorizationEndpontResponseHandler
private transient List<AuthorizationEndpointResponseHandler> authorizationEndpointResponseHandlers; private transient OAuth2Store store;
You can also change the mapping in web.xml and the shindig.oauth2.global-redirect-uri in shindig.properties to add your own callback endpoint.