Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

스프링 시큐리티를 이용한 api 사용 인증 #66

Open
kmmin78 opened this issue Aug 1, 2021 · 0 comments · May be fixed by #68
Open

스프링 시큐리티를 이용한 api 사용 인증 #66

kmmin78 opened this issue Aug 1, 2021 · 0 comments · May be fixed by #68
Assignees
Labels
enhancement New feature or request

Comments

@kmmin78
Copy link
Collaborator

kmmin78 commented Aug 1, 2021

개요

스프링 시큐리티를 이용한 api 사용 인증

AS-IS

현재 /login api를 제외한 api는 인증이 필요하나,
따로 인증 관련 로직 및 설정이 없음.

TO-BE

Jws 검증 및 인증을 통해 사용자의 api 사용권한을 취득할 수 있음.

@kmmin78 kmmin78 added the enhancement New feature or request label Aug 1, 2021
@kmmin78 kmmin78 self-assigned this Aug 1, 2021
@kmmin78 kmmin78 added this to Backlog in awesome-wiki via automation Aug 1, 2021
kmmin78 pushed a commit to kmmin78/awesome-wiki that referenced this issue Aug 1, 2021
주요 내용

1. jws 검증 usecase를 추가한 테스트코드 작성
2. jws 검증을 위한 filter 추가
3. authenticationException handling을 위한 entrypoint 추가
4. filter 및 entrypoint 설정에 추가

Closes f-lab-edu#66
kmmin78 pushed a commit that referenced this issue Aug 1, 2021
주요 내용

1. jws 검증 usecase를 추가한 테스트코드 작성
2. jws 검증을 위한 filter 추가
3. authenticationException handling을 위한 entrypoint 추가
4. filter 및 entrypoint 설정에 추가

Closes #66
@kmmin78 kmmin78 linked a pull request Aug 1, 2021 that will close this issue
kmmin78 pushed a commit that referenced this issue Aug 10, 2021
주요 내용

1. 테스트 함수 이름 변경
2. Bearer 추출 방식 변경에 따른 상수 제거 (substring -> split)
3. SpringApi 클래스 제거 (사용안함)

Closes #66
kmmin78 pushed a commit that referenced this issue Aug 13, 2021
주요 내용

1. 메서드 보안방식 (@PreAuthorize) 반영 및 글로벌 filter 보안 제거
2. rest assured http call 방식을 이용한 테스트 및 헬퍼 클래스 작성

Closes #66
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
1 participant