Authorization Response Handling

Description

Allows shindig developers to process a response from the Authorization Endpoint.  It is up to the handler implementation to decide whether or not it wants to handle the response and to do any necessary OAuth2Accessor or OAuth2Store updates as a result. 

Specification References

   http://tools.ietf.org/html/draft-ietf-oauth-v2-21#section-4.1.2

  http://tools.ietf.org/html/draft-ietf-oauth-v2-21#section-8.4

Key Classes/Intefraces

               
    org.apache.shindig.gadgets.oauth2.handler.AuthorizationEndpointResponseHandler

Provided Sample Implementations

      
    org.apache.shindig.gadgets.oauth2.handler.sample.CodeAuthorizationResponseHandler
         

Module

       
    org.apache.shindig.gadgets.oauth2.handler.sample.OAuth2HandlerModule


@Provides
  @Singleton
  List<AuthorizationEndpointResponseHandler> provideAuthorizationEndpointResponseHandlers(
      final CodeAuthorizationResponseHandler codeAuthorizationResponseHandle) {
    return ImmutableList
        .of((AuthorizationEndpointResponseHandler) codeAuthorizationResponseHandler);
  }
     

Injected Into

           
    org.apache.shindig.gadgets.oauth2.BasicOAuth2Request



    org.apache.shindig.gadgets.servlet.OAuth2CallbackServlet