Class OAuth2AuthorizationCodeGrantWebFilter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      reactor.core.publisher.Mono<java.lang.Void> filter​(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain)  
      void setAuthorizationRequestRepository​(ServerAuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest> authorizationRequestRepository)
      Sets the repository used for storing OAuth2AuthorizationRequest's.
      void setRequestCache​(org.springframework.security.web.server.savedrequest.ServerRequestCache requestCache)
      Sets the ServerRequestCache used for loading a previously saved request (if available) and replaying it after completing the processing of the OAuth 2.0 Authorization Response.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OAuth2AuthorizationCodeGrantWebFilter

        public OAuth2AuthorizationCodeGrantWebFilter​(org.springframework.security.authentication.ReactiveAuthenticationManager authenticationManager,
                                                     org.springframework.security.web.server.authentication.ServerAuthenticationConverter authenticationConverter,
                                                     ServerOAuth2AuthorizedClientRepository authorizedClientRepository)
    • Method Detail

      • setAuthorizationRequestRepository

        public final void setAuthorizationRequestRepository​(ServerAuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest> authorizationRequestRepository)
        Sets the repository used for storing OAuth2AuthorizationRequest's. The default is WebSessionOAuth2ServerAuthorizationRequestRepository.
        Parameters:
        authorizationRequestRepository - the repository used for storing OAuth2AuthorizationRequest's
        Since:
        5.2
      • setRequestCache

        public final void setRequestCache​(org.springframework.security.web.server.savedrequest.ServerRequestCache requestCache)
        Sets the ServerRequestCache used for loading a previously saved request (if available) and replaying it after completing the processing of the OAuth 2.0 Authorization Response.
        Parameters:
        requestCache - the cache used for loading a previously saved request (if available)
        Since:
        5.4
      • filter

        public reactor.core.publisher.Mono<java.lang.Void> filter​(org.springframework.web.server.ServerWebExchange exchange,
                                                                  org.springframework.web.server.WebFilterChain chain)
        Specified by:
        filter in interface org.springframework.web.server.WebFilter