Token Response Handling

Description

Allows shindig developers to process a response from the Token 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.4.1

Key Classes/Intefraces

               
    org.apache.shindig.gadgets.oauth2.handler.TokenEndpointResponseHandler

Provided Sample Implementations

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

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


  @Provides
  @Singleton
  List<TokenEndpointResponseHandler> provideTokenEndpointResponseHandlers(
      final TokenAuthorizationResponseHandler tokenAuthorizationResponseHandler) {
    return ImmutableList.of((TokenEndpointResponseHandler) tokenAuthorizationResponseHandler);
  }
     

Injected Into

                
    org.apache.shindig.gadgets.oauth2.BasicOAuth2Request