Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] OAuth를 이용한 토큰기반 인증구현 #35

Open
2 tasks done
mybloom opened this issue Jun 7, 2022 · 0 comments
Open
2 tasks done

[feat] OAuth를 이용한 토큰기반 인증구현 #35

mybloom opened this issue Jun 7, 2022 · 0 comments
Assignees
Labels

Comments

@mybloom
Copy link
Collaborator

mybloom commented Jun 7, 2022

💡 Issue

OAuth 인증 - github
토근 기반 인증 - JWT

💻 작업 내용

  • OAuth구현
  • JWT 구현
@mybloom mybloom added BE 💡 Feature Add feature labels Jun 7, 2022
@mybloom mybloom added this to the [BE,iOS]로그인 구현 milestone Jun 7, 2022
mybloom added a commit that referenced this issue Jun 8, 2022
mybloom added a commit that referenced this issue Jun 8, 2022
- @EnableConfigurationProperties 사용하기 위해 추가
mybloom added a commit that referenced this issue Jun 8, 2022
- @ConfigurationProperties를 이용해서 yml config 파일에서 읽은 속성을 객체로 생성
- @EnableConfigurationProperties를 이용해서 위에서 객체로 생성한 것을 속성으로 사용하고,
- @configuration을 통해서 해당 속성을 사용한 repository를 스프링 빈으로 등록한다.
mybloom added a commit that referenced this issue Jun 8, 2022
mybloom added a commit that referenced this issue Jun 8, 2022
@mybloom mybloom self-assigned this Jun 9, 2022
mybloom added a commit that referenced this issue Jun 9, 2022
mybloom added a commit that referenced this issue Jun 9, 2022
- 인증 완료 후, access token 과 refresh token을 전달
mybloom added a commit that referenced this issue Jun 9, 2022
- 깃헙 로그인 페이지로 redirect기능
mybloom added a commit that referenced this issue Jun 9, 2022
mybloom added a commit that referenced this issue Jun 9, 2022
- 한번만 적용되도록 OncePerRequestFilter 상속
mybloom added a commit that referenced this issue Jun 9, 2022
-  @component로 인해 Filter가 또 스캔되면서 필터가 중복해서 등록되는 문제 해결위해 '@ServletComponentScan + @webfilter 방식'만 적용되도록 하기 위해
mybloom added a commit that referenced this issue Jun 11, 2022
mybloom added a commit that referenced this issue Jun 11, 2022
- jjwt-jackson : 추가하지 않으면 토큰 생성시 에러
mybloom added a commit that referenced this issue Jun 11, 2022
mybloom added a commit that referenced this issue Jun 11, 2022
mybloom added a commit that referenced this issue Jun 11, 2022
- 토큰 종류별로 payload 생성할 수 있도록 변경
- payload 객체에서 해당 값을 가져올 수 있도록 변경
mybloom added a commit that referenced this issue Jun 11, 2022
- 시그니처 생성시 HS256 사용하도록 셋팅
mybloom added a commit that referenced this issue Jun 11, 2022
…AllowedClockSkewSeconds() 사용 (#35)

- setAllowedClockSkewSeconds 는 2~3분이면 충분하다고 한다.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants