Class SpringAddonsOauth2ServerRedirectStrategy

java.lang.Object
com.c4_soft.springaddons.security.oidc.starter.reactive.client.SpringAddonsOauth2ServerRedirectStrategy
All Implemented Interfaces:
org.springframework.security.web.server.ServerRedirectStrategy
Direct Known Subclasses:
ReactiveSpringAddonsOidcClientWithLoginBeans.SpringAddonsPreAuthorizationCodeServerRedirectStrategy

public class SpringAddonsOauth2ServerRedirectStrategy extends Object implements org.springframework.security.web.server.ServerRedirectStrategy
A redirect strategy that might not actually redirect: the HTTP status is taken from com.c4-soft.springaddons.oidc.client.oauth2-redirect-status property. User-agents will auto redirect only if the status is in 3xx range. This gives single page and mobile applications a chance to intercept the redirection and choose to follow the redirection (or not), with which agent and potentially by clearing some headers.
Author:
Jerome Wacongne ch4mp@c4-soft.com
  • Constructor Details

    • SpringAddonsOauth2ServerRedirectStrategy

      public SpringAddonsOauth2ServerRedirectStrategy()
  • Method Details

    • sendRedirect

      public reactor.core.publisher.Mono<Void> sendRedirect(org.springframework.web.server.ServerWebExchange exchange, URI location)
      Specified by:
      sendRedirect in interface org.springframework.security.web.server.ServerRedirectStrategy