July 2018
Intermediate to advanced
268 pages
7h 36m
English
Our custom WebFilter, named JWTAuthWebFilter, is entrusted with converting the JWT token received into appropriate classes that the Spring Security understands. It makes use of a converter named JWTAuthConverter, which does a number of things, as follows:
The code snippet below shows the JWTAuthWebFilter class and its important method which does operations listed above.
public class JWTAuthConverter implements Function<ServerWebExchange, Mono<Authentication>> { @Override public Mono<Authentication> apply(ServerWebExchange ...Read now
Unlock full access