Spring Boot Security - Generate JWT

  Рет қаралды 24,131

Teddy Smith

Teddy Smith

Күн бұрын

Пікірлер: 21
@Devivl
@Devivl 9 ай бұрын
Awesome lessons. Thanks, Teddy. You're a great guy and a great teacher. Keep sharing your knowledge, please.
@jasminetea4574
@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
@TrollerSK Жыл бұрын
HI. I have managed to create something like this: return Jwts .parser() .verifyWith(Keys.hmacShaKeyFor(JWT_SECRET.getBytes())) .build() .parseSignedClaims(token) .getPayload() .getSubject();
@turkoglunurullah
@turkoglunurullah 9 ай бұрын
you can use like that Jwts.parserBuilder().setSigningKey(getSignInKey()).build().parseClaimsJws(token).getBody();
@sanctusfides
@sanctusfides 8 ай бұрын
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
@TheVenkateshgadu Жыл бұрын
.exceptionHandling() is deprecated.
@travahnetshisaulu3101
@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
@TeddySmithDev Жыл бұрын
No prob. Full stack Java is on the horizon but will be a while 👍 thanks for the comments!!!
@travahnetshisaulu3101
@travahnetshisaulu3101 Жыл бұрын
thanks @@TeddySmithDev
@ElmshornBoy
@ElmshornBoy Жыл бұрын
Hello Teddy, I am new to JWT. When to use a AuthenticationFilter and when to use a JwtAuthenticationEntryPoint?
@TeddySmithDev
@TeddySmithDev Жыл бұрын
I’m familiar with that class but I have no clue
@Mahmudulhasan-ts5hm
@Mahmudulhasan-ts5hm Жыл бұрын
JWTGenerator not generating the token. it giving 401Unauthorized.
@danielmwinzi9223
@danielmwinzi9223 Жыл бұрын
did you manage to deal with this
@ViorelMoschoi
@ViorelMoschoi 2 жыл бұрын
the parser() method and signWith() are Deprecated :c
@Justin-xy2ko
@Justin-xy2ko 2 жыл бұрын
it is not. Are you usign the right import/plugin?
@mabr0eeeee551
@mabr0eeeee551 Жыл бұрын
@@Justin-xy2ko no sorry
@SupriyaMondal3
@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);
Spring Boot Security - JWT Filter
15:11
Teddy Smith
Рет қаралды 25 М.
Spring Boot Security - Register
12:01
Teddy Smith
Рет қаралды 32 М.
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 3,6 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 48 МЛН
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 22 МЛН
#37 Spring Security | Generating JWT Token
12:14
Telusko
Рет қаралды 12 М.
#36 Spring Security Project Setup for JWT
16:43
Telusko
Рет қаралды 23 М.
How to get the Debug.Assert in Javascript.
5:21
Learn Game Development
Рет қаралды 15
#38 Spring Security | Validating JWT Token
20:36
Telusko
Рет қаралды 11 М.
Spring Boot Security - Users & Roles
15:30
Teddy Smith
Рет қаралды 49 М.
Spring Security 6 with Spring Boot and JWT Tutorial
3:14:14
Telusko
Рет қаралды 135 М.
Spring Security JPA Authentication in Spring Boot
40:04
Dan Vega
Рет қаралды 43 М.
Spring Boot Security - UserDetailsService & AuthenticationManager
11:49
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 3,6 МЛН