Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

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

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

Provided Sample Implementations

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

Module

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

Code Block

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

Injected Into

Code Block
           
    org.apache.shindig.gadgets.oauth2.BasicOAuth2Request


Code Block

    org.apache.shindig.gadgets.servlet.OAuth2CallbackServlet