Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
a31f904
feat(application.yml): redis, security(oauth), frontend, logging leve…
m-a-king Nov 22, 2024
cca332c
feat(RedisConfig): Redis Template, ConnectionFactory 추가
m-a-king Nov 22, 2024
c0479f8
feat(Tier): 봉사자 등급 Enum 추가
m-a-king Nov 22, 2024
b77022c
feat(UserRole): 사용자 역할 Enum 추가
m-a-king Nov 22, 2024
82199e8
feat(OAuthProvider): OAuth 제공자 Enum 추가
m-a-king Nov 22, 2024
a3ef142
feat(main): @EnableJpaAuditing 추가
m-a-king Nov 22, 2024
d4ee58c
feat(Tier): 불필요한 rank 필드 삭제
m-a-king Nov 23, 2024
0fd7a67
feat(Gender): 성별 ENUM 추가
m-a-king Nov 23, 2024
8416a64
feat(dto): Volunteer 등록을 위한 VolunteerRegisterRequestDto 추가
m-a-king Nov 23, 2024
5fa7a74
feat(VolunteerDetail): VolunteerDetail 엔티티 추가
m-a-king Nov 23, 2024
945f6f9
feat(Volunteer): Volunteer 엔티티 추가
m-a-king Nov 23, 2024
c3d65d8
feat(VolunteerRepository): VolunteerRepository 인터페이스 추가
m-a-king Nov 23, 2024
a37bf73
feat(VolunteerDetailRepository): VolunteerDetailRepository 인터페이스 추가
m-a-king Nov 23, 2024
345e610
feat(cookie): 쿠키 설정을 위한 SetCookieUseCase 및 SetCookieService 구현
m-a-king Nov 23, 2024
7d26962
feat(volunteer): 자원봉사자 등록 UseCase 및 Service 구현
m-a-king Nov 23, 2024
f594fe7
feat(dto): NaverUserProfileResponseDto 구현
m-a-king Nov 23, 2024
565e894
feat(NaverUser): NaverUser 엔티티 추가
m-a-king Nov 23, 2024
b9d7d6d
feat(NaverUserRepository): NaverUserRepository 인터페이스 추가
m-a-king Nov 23, 2024
bf7ea95
feat(converter): OAuth2User를 NaverUserProfileResponseDto로 변환하는 유틸리티 추가
m-a-king Nov 23, 2024
f621689
feat(redirect): 리다이렉트 처리를 위한 config 및 UsaCase, Service 추가
m-a-king Nov 23, 2024
ed054e0
feat(CheckNaverUser): 네이버 사용자 존재 여부 확인을 위한 UseCase 및 Service 구현
m-a-king Nov 23, 2024
afa6d2c
feat(ProcessOAuthUser): 네이버 OAuth 사용자 처리 UseCase 및 Service 구현
m-a-king Nov 23, 2024
70a4833
feat(RegisterNaverUser): 네이버 OAuth 사용자 등록 UsaCase, Service 추가
m-a-king Nov 23, 2024
29a4695
feat(auth): OAuth 실패 처리 핸들러(CustomOAuthFailureHandler) 구현
m-a-king Nov 23, 2024
bec0572
feat(NaverOAuth): 네이버 OAuth2 사용자 처리 서비스 추가
m-a-king Nov 23, 2024
af51871
feat(OAuthUser): CustomOAuth2UserService 구현 및 OAuth 사용자 처리 로직 개선
m-a-king Nov 23, 2024
8e4da9b
feat(FindVolunteer): OAuth ID로 Volunteer ID 조회 서비스 구현
m-a-king Nov 23, 2024
ace54e1
feat(OAuthSuccessHandler): OAuth 인증 성공 처리 핸들러 구현
m-a-king Nov 23, 2024
8d05dc3
chore: Volunteer 엔티티 삭제 (다른 패키지에 있음)
m-a-king Nov 23, 2024
2e53b62
feat(config): Spring Security 설정 추가 및 OAuth2 인증 처리 구성
m-a-king Nov 23, 2024
d66389a
style: unused imports 제거, formatting 수정
m-a-king Nov 23, 2024
85b2675
refactor(VolunteerDetail): 불필요한 length 설정 제거
m-a-king Nov 24, 2024
0c6e7f0
feat(config): 테스트 환경을 위한 Redis, 프론트엔드, JWT 설정 추가
m-a-king Nov 24, 2024
35789a5
feat(Gender): enum 값들을 대문자로 변경
m-a-king Nov 24, 2024
189c7c9
fix(IntegrationTestSupport): @JpaAuditing 설정을 prod 환경으로 이동
m-a-king Nov 24, 2024
1b03215
feat(VolunteerDetail): VolunteerId로 Detail 조회 기능 추가
m-a-king Nov 24, 2024
41921e0
style(개행): git 잠재적인 에러 예방
m-a-king Nov 24, 2024
d0d31e2
test(FindVolunteerIdService): 봉사자 ID 조회 서비스 테스트 추가
m-a-king Nov 24, 2024
b3fa19f
test(RegisterVolunteerService): 봉사자와 상세 정보 저장 서비스 테스트 추가
m-a-king Nov 24, 2024
6e9aecb
style(개행): git 잠재적인 에러 예방
m-a-king Nov 24, 2024
f38391e
feat(OAuthResponseConverter): 유틸 클래스 기본 생성자 private 설정
m-a-king Nov 25, 2024
d1a5daf
fix(VolunteerRepository): 대소문자 오타 수정
m-a-king Nov 25, 2024
5b223a1
style(개행): git 잠재적인 에러 예방
m-a-king Nov 25, 2024
67575e2
feat(SecurityConfig): 모든 요청 permitAll
m-a-king Nov 25, 2024
455fe76
fix(Test): 중복된 테스트 설정 정리
m-a-king Nov 25, 2024
8d0fd8d
refactor(OAuthResponseConverter): private 기본 생성자를 어노테이션으로 대체
m-a-king Nov 25, 2024
f6ab84f
feat(Voluntter): updatable = false 삭제
m-a-king Nov 25, 2024
0338697
Feature/9 기관 프로필 조회 기능 구현 (#32)
7zrv Nov 25, 2024
ffcafa1
refactor(ProcessNaverOAuthUserService): @Component -> @Service
m-a-king Nov 25, 2024
3291aa7
Merge branch 'main' into feature/40-auth-spring-security-oauth
m-a-king Nov 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,29 @@ spring:
generate_statistics: true
show-sql: true

data:
redis:
host: ${REDIS_HOST}
port: ${REDIS_PORT}
password: ${REDIS_PASSWORD}

security:
oauth2:
client:
registration:
naver:
client-id: ${NAVER_CLIENT_ID}
client-secret: ${NAVER_CLIENT_SECRET}
redirect-uri: "http://localhost:8080/login/oauth2/code/naver"
authorization-grant-type: authorization_code
scope: ${NAVER_SCOPE}

provider:
naver:
authorization-uri: https://nid.naver.com/oauth2.0/authorize
token-uri: https://nid.naver.com/oauth2.0/token
user-info-uri: https://openapi.naver.com/v1/nid/me
user-name-attribute: response # 네이버 API가 사용자 정보를 "response" 객체 안에 넣어 반환

#swagger
springdoc:
Expand All @@ -35,5 +58,12 @@ springdoc:
paths-to-match:
- /api/**

frontend:
url: localhost

jwt:
secret: ${JWT_SECRET}

logging:
level:
org.springframework.security: DEBUG