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

[#35] 로그인한 유저 인증 기능 추가 #38

Merged
merged 11 commits into from
Oct 18, 2024
Merged

[#35] 로그인한 유저 인증 기능 추가 #38

merged 11 commits into from
Oct 18, 2024

Commits on Oct 9, 2024

  1. Configuration menu
    Copy the full SHA
    872f676 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2024

  1. Configuration menu
    Copy the full SHA
    9318e1c View commit details
    Browse the repository at this point in the history
  2. refactor: 인증 관련 상수 클래스 생성

    - Header에 인증과 키워드들을 상수 클래스로 정의하여 사용
    Srltas committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    30358be View commit details
    Browse the repository at this point in the history
  3. refactor: OncePerRequestFilter를 상속하도록 수정

     - AuthenticationFilter는 해당 요청이 로그인된 사용자의 요청인지 확인하는 필터입니다
     - 해당 필터는 요청 당 한 번만 실행되면 되므로 한 번만 실행될 수 있도록 AuthenticationFileter를 상속했습니다.
    Srltas committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    deb261f View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2024

  1. refactor: filter에서 token이 null 처리하도록 수정

    - filter에서 token이 null인 경우 더 이상 요청을 진행하지 않고 에러를 반환합니다.
    - controller에서는 filter에서 인증 처리를 했기 때문에, 더 이상 null 체크는 하지 않습니다.
    Srltas committed Oct 12, 2024
    Configuration menu
    Copy the full SHA
    d28ca41 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    127dc92 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fec16bd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    50646f5 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2024

  1. refactor: URL constant로 관리

    - Controller와 Filter 두 곳에 URL 관리의 편의성을 위해 constant 클래스를 만들어 한 곳에서 관리합니다
    Srltas committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    203ccdf View commit details
    Browse the repository at this point in the history
  2. feat: 임시로 사용하는 SessionStorage 구현체

    - 로그인 기능을 개발하기 전까지 테스트용으로 사용할 SessionStorage 구현체입니다
    Srltas committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    1c7a7d4 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2024

  1. refactor: Filter 코드 리펙토링

    - 저장소에서 유저가 존재하는지 확인하는 메소드(authenticateUser)가 확인 뿐만 아니라 request에 유저 정보를 넣는 역할까지 맞고 있어 책임 분리
    - 역할을 명확하게 하기 위해 기존 메소드의 이름을 authenticateUser -> isNullUserSessionDTO로 변경
    - doFilterInternal에서 request에 유저 정보를 넣어 Controller에게 전달하는 역할 수행
    - 토큰이 null인 경우 저장소에서 유저를 확인하지 않고, 바로 예외 처리를 할 수 있도록 로직 수정
    Srltas committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    885a28e View commit details
    Browse the repository at this point in the history