You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have these two filters: SpaWebFilter and OAuth2ReactiveRefreshTokensWebFilter
On the OAuth2ReactiveRefreshTokensWebFilter I manage refresh tokens. However in the idle mode I want to reload de home page and start login again.
I tried to call the home page from OAuth2ReactiveRefreshTokensWebFilter: .onErrorResume(e -> initiateReAuthentication(exchange));
private Mono<Void> initiateReAuthentication(ServerWebExchange exchange) { return new SpaWebFilter().filter(exchange.mutate().request(exchange.getRequest().mutate().path("/").build()).build(), chain) }
or directly return exchange.mutate().request(exchange.getRequest().mutate().path("/index.html").build()).build().
Unfortunately doesn't work even when I start the application the SpaWebFilter loads the static resource. Where is the difference?
Please support.
The text was updated successfully, but these errors were encountered:
I have these two filters:
SpaWebFilter and
OAuth2ReactiveRefreshTokensWebFilter
On the OAuth2ReactiveRefreshTokensWebFilter I manage refresh tokens. However in the idle mode I want to reload de home page and start login again.
I tried to call the home page from OAuth2ReactiveRefreshTokensWebFilter:
.onErrorResume(e -> initiateReAuthentication(exchange));
private Mono<Void> initiateReAuthentication(ServerWebExchange exchange) { return new SpaWebFilter().filter(exchange.mutate().request(exchange.getRequest().mutate().path("/").build()).build(), chain) }
or directly
return exchange.mutate().request(exchange.getRequest().mutate().path("/index.html").build()).build()
.Unfortunately doesn't work even when I start the application the SpaWebFilter loads the static resource. Where is the difference?
Please support.
The text was updated successfully, but these errors were encountered: