Awesome lessons. Thanks, Teddy. You're a great guy and a great teacher. Keep sharing your knowledge, please.
@jasminetea4574 Жыл бұрын
Hi! Thank you so much for the tutorial. I've been able to replace most of the deprecated parts of your code with the updated versions using documentation, however, for the function 'getUsernameFromJWT', I get "parseClaimsJws" in red...it seems that Jwts.parser() is considered deprecated in the recent java documentation, but there is no suggestion on the docs about what to replace 'parseClaimsJws' with. I can't find anything online about how to go about solving this. Do you have any idea? Thanks again :)
@TrollerSK Жыл бұрын
HI. I have managed to create something like this: return Jwts .parser() .verifyWith(Keys.hmacShaKeyFor(JWT_SECRET.getBytes())) .build() .parseSignedClaims(token) .getPayload() .getSubject();
@turkoglunurullah9 ай бұрын
you can use like that Jwts.parserBuilder().setSigningKey(getSignInKey()).build().parseClaimsJws(token).getBody();
@sanctusfides8 ай бұрын
This may be late so I don't know if it's helpful but it looks like a ".build()" followed by ".parseSignedClaims(token)" should be the new method to use there. Did you find a solution that worked for you?
@TheVenkateshgadu Жыл бұрын
.exceptionHandling() is deprecated.
@travahnetshisaulu3101 Жыл бұрын
Thank you so much Teddy, very much appreciated. i really wish you can make a front end app to connect with this back-end.
@TeddySmithDev Жыл бұрын
No prob. Full stack Java is on the horizon but will be a while 👍 thanks for the comments!!!
@travahnetshisaulu3101 Жыл бұрын
thanks @@TeddySmithDev
@ElmshornBoy Жыл бұрын
Hello Teddy, I am new to JWT. When to use a AuthenticationFilter and when to use a JwtAuthenticationEntryPoint?
@TeddySmithDev Жыл бұрын
I’m familiar with that class but I have no clue
@Mahmudulhasan-ts5hm Жыл бұрын
JWTGenerator not generating the token. it giving 401Unauthorized.
@danielmwinzi9223 Жыл бұрын
did you manage to deal with this
@ViorelMoschoi2 жыл бұрын
the parser() method and signWith() are Deprecated :c
@Justin-xy2ko2 жыл бұрын
it is not. Are you usign the right import/plugin?
@mabr0eeeee551 Жыл бұрын
@@Justin-xy2ko no sorry
@SupriyaMondal3 Жыл бұрын
thry to dig up little bit, get your hands dirty you will find how to use jwts parser for new version, Jwts.parserBuilder() .setSigningKey(getSignedKey()) .build() .parseClaimsJws(token);