본문 바로가기

전체 글232

Spring Security JWT 유저, Oauth에 대한 대대적인 공사-3(Oauth2) 1편 - Local User (https://thcoding.tistory.com/114) 2편 - JWT (https://thcoding.tistory.com/115) 3편 - (현재글) OAuth2 (https://thcoding.tistory.com/116) 4편 - OAuth2 test(https://thcoding.tistory.com/118) 저번 포스팅 JWT에 이어서 oauth2 에 관련된 코드들에대해 리뷰를 해보겠다. 코드가 엄청 많다. 가장먼저 엔티티 정리부터 하고가자. 엔티티 ㅇ AuthReqModel @Getter @Setter @NoArgsConstructor @AllArgsConstructor public class AuthReqModel { private String id; p.. 2023. 9. 14.
Spring Security JWT 유저, Oauth에 대한 대대적인 공사-2(JWT) 1편 - Local User (https://thcoding.tistory.com/114) 2편 - (현재글)JWT (https://thcoding.tistory.com/115) 3편 - OAuth2 (https://thcoding.tistory.com/116) 4편 - OAuth2 test(https://thcoding.tistory.com/118) 저번 포스팅은 local User이 사용하는 코드에대한 리뷰였고 이번엔 JWT에 관한 코드들을 리뷰해보겠다. JWT 란, Json Web token의 약자고, 일종의 사용기한이 있는 신분증같은것이다. 예를 들어, 유저가 비밀번호를 업데이트를 하고자 한다 치면, 이 유저는 인증이 되어있어야한다. 이 유저가 로그인할때 우리는 토큰을 주고, 유저는 이 토큰을 갖.. 2023. 9. 13.
Spring Security JWT 유저, Oauth에 대한 대대적인 공사-1(Local User) 1편 - (현재글) Local User (https://thcoding.tistory.com/114) 2편 - JWT (https://thcoding.tistory.com/115) 3편 - OAuth2 (https://thcoding.tistory.com/116) 4편 - OAuth2 test(https://thcoding.tistory.com/118) 이 포스팅을 적기에 앞서, 제너럴킹갓 DEEPLIFY 님께 감사하단 말 전합니다. 이분께서 정리해둔 포스팅은 나같은 초보들에게 내려주신 희망의 빛줄기이다. 그 빛의 포스팅은 https://deeplify.dev/back-end/spring/oauth2-social-login#%ED%94%84%EB%A1%A0%ED%8A%B8%EC%97%94%EB%93%9C.. 2023. 9. 12.
배포 자동화를 해보자-3(Github Actions) (완료) 다음편을 바로 썼어야했는데 해결에 너무 급급해 블로깅을 제대로 못했다. 이제 몰아서 다시 써보려고한다. 배포 자동화를 해보자1에 이어서 배포 그룹을 만드는것부터 정리해보려한다. ㅇ 배포그룹 만들기 중요한건 배포 설정에 저걸로 설정하고, 완성되면 저렇게 나온다. 저렇게 배포 그룹이 생성되면 git push 를하면 github actions에서 저기내가 설정해둔 단계중 Code Deploy 단계에서 배포그룹으로 배포가 실행된다. 이렇게 배포가 실행되고 완료되면 appspec.yml 파일에 설정해둔 작업들이 해당 scripts에 따라 진행된다. 나의 appspec.yml 파일을 파헤쳐보자. version: 0.0 os: linux files: - source: / destination: /home/ubuntu.. 2023. 9. 12.