ALOHA CLASS
/
Back-End
/
Spring Security
Search
Duplicate
Share
Spring Security 5 x React x JWT
JWT(JSON Web Token)
โ์ธ์ฆ ๋ฐ ๊ถํโ ๊ณผ ๊ด๋ จ๋ ์ ๋ณด๋ฅผ ์์ ํ๊ฒ ์ ๋ฌํ๊ธฐ ์ํ JSON ํ์์ ์ํธํ๋ ๋ฌธ์์ด
JWT.IO
JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties.
์ธ์ฆ, ๊ถํ ๋ถ์ฌ, ์ ๋ณด ๊ตํ ๋ฑ์ ์ฌ์ฉ๋ฉ๋๋ค.
JWT
SpringBoot ๋ก JWT ํ ํฐ ์์ฑ ๋ฐ ํด์ํ๊ธฐ
JWT ๋ผ์ด๋ธ๋ฌ๋ฆฌ
โข
https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-api
โข
https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-impl
JWT x SpringBoot
Spring Boot 2
Spring Security 5
JWT x SpringSecurity
MSA5_REACT/Login/server at main ยท ALOHA-CLASS/MSA5_REACT
๋์กฐ์์์นด๋ฐ๋ฏธ React ์ค์ต. Contribute to ALOHA-CLASS/MSA5_REACT development by creating an account on GitHub.
โข
build.gradle
โข
ํ์๊ฐ์ ๋ฐ ๋ก๊ทธ์ธ
โฆ
Users.java
โฆ
UserAuth.java
โฆ
UserMapper.xml
โฆ
UserMapper.java
โฆ
UserServicejava
โฆ
UserServiceImpl.java
โข
์ธ์ฆ
โฆ
JWT ํ ํฐ ์ธ์ฆ
โช
SecurityConstants.java
โช
AuthenticationRequest.java
โช
JwtProps.java
โช
SecurityConfig.java
โช
CustomUser.java
โช
CustomUserDetailService.java
โฆ
ํ ํฐ Provider
โช
JwtTokenProvider.java
โข
ํ ํฐ ์์ฑ
โข
ํ ํฐ ํด์
โข
ํ ํฐ ์ ํจ์ฑ ๊ฒ์ฌ
โฆ
ํํฐ ์ค์
โช
JWT ํ ํฐ ์์ฒญ ํํฐ
โข
JwtRequestFilter.java
โช
JWT ํ ํฐ ์ธ์ฆ ํํฐ
โข
JwtAuthenticationFilter.java
JWT x SpringSecurity
Spring Boot 2
Spring Security 5
React x JWT x SpringSecurity
Client (React)
MSA5_REACT/Login/client at main ยท ALOHA-CLASS/MSA5_REACT
๋์กฐ์์์นด๋ฐ๋ฏธ React ์ค์ต. Contribute to ALOHA-CLASS/MSA5_REACT development by creating an account on GitHub.
React x JWT x SpringSecurity
Spring Boot 2
Spring Security 5