Class ServerHttpSecurity.HttpBasicSpec

    • Method Detail

      • securityContextRepository

        public ServerHttpSecurity.HttpBasicSpec securityContextRepository​(org.springframework.security.web.server.context.ServerSecurityContextRepository securityContextRepository)
        The ServerSecurityContextRepository used to save the Authentication. Defaults to NoOpServerSecurityContextRepository. For the SecurityContext to be loaded on subsequent requests the ReactorContextWebFilter must be configured to be able to load the value (they are not implicitly linked).
        Parameters:
        securityContextRepository - the repository to use
        Returns:
        the ServerHttpSecurity.HttpBasicSpec to continue configuring
      • authenticationEntryPoint

        public ServerHttpSecurity.HttpBasicSpec authenticationEntryPoint​(org.springframework.security.web.server.ServerAuthenticationEntryPoint authenticationEntryPoint)
        Allows easily setting the entry point.
        Parameters:
        authenticationEntryPoint - the ServerAuthenticationEntryPoint to use
        Returns:
        ServerHttpSecurity.HttpBasicSpec for additional customization
        Since:
        5.2.0
      • authenticationFailureHandler

        public ServerHttpSecurity.HttpBasicSpec authenticationFailureHandler​(org.springframework.security.web.server.authentication.ServerAuthenticationFailureHandler authenticationFailureHandler)