Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

front구현 없이 api로만 구현(약 1시간 30분 소요)

초기 Database 상태 image


1.

Postman 에서 admin / 1234 로 join(회원가입) POST요청

image

HttpStatus 200 Ok

image

database 에 Userid, Username, user_Role, 암호화된 password 가 삽입됨


2.

회원가입 후 admin /1234 로 로그인 POST요청

image

HttpStatus 200 OK Hearders의 Authorization에 Bearer + " JWT암호화된 password" return 확인


3.

로그인 후 /adimin 으로 GET요청 image

request시 Authorization에 JWT암호화된 password 포함해 request admin임을 확인 후 adminController가 잘 출력됨 확인


짧은 회고

SpringSecurity와 JWT를 이용해 로그인 api를 구현해보았다. 페이지 구현은 시간 상 따로 진행하지 않았지만, 추후 진행할 프로젝트에서 잘 사용할 수 있을 것 같다.

다음으로 oAuth2 관련 소셜로그인을 구현해보는것을 목표로 한다.

About

SpringSecurity / JWT 인가 등의 로그인 구현 연습

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages