Interface OAuth2AuthorizationFailureHandler

    • Method Detail

      • onAuthorizationFailure

        void onAuthorizationFailure​(OAuth2AuthorizationException authorizationException,
                                    Authentication principal,
                                    java.util.Map<java.lang.String,​java.lang.Object> attributes)
        Called when an OAuth 2.0 Client fails to authorize (or re-authorize) via the Authorization Server or Resource Server.
        Parameters:
        authorizationException - the exception that contains details about what failed
        principal - the Principal associated with the attempted authorization
        attributes - an immutable Map of (optional) attributes present under certain conditions. For example, this might contain a javax.servlet.http.HttpServletRequest and javax.servlet.http.HttpServletResponse if the authorization was performed within the context of a javax.servlet.ServletContext.