Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,41 @@ ResponseEntity<CommonResponse<AccessTokenDTO>> refresh (

@Operation(summary = "소셜 로그인", description = "구글, 네이버, 카카오를 이용해 소셜 로그인을 진행합니다.")
@ApiResponses({
@ApiResponse(responseCode = "200", description = "소셜 로그인 성공",
@ApiResponse(responseCode = "200", description = "소셜 로그인 성공(이미 가입한 회원의 경우)",
content = @Content(schema = @Schema(implementation = CommonResponse.class),
examples = @ExampleObject(value = """
{
"status": 200,
"code": "200 OK",
"message": "소셜 로그인 성공",
"data": {
"grantType": "bearer",
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refreshToken": "dGhpc2lzYXJlZnJlc2h0b2tlbg=="
"refreshToken": "dGhpc2lzYXJlZnJlc2h0b2tlbg==",
"loginType": "NAVER",
"registered": false,
"socialUserInfo": null
}
}
"""))),
@ApiResponse(responseCode = "200", description = "소셜 로그인 성공(아직 가입하지 않은 회원의 경우)",
content = @Content(schema = @Schema(implementation = CommonResponse.class),
examples = @ExampleObject(value = """
{
"status": 200,
"code": "200 OK",
"message": "소셜 로그인 성공",
"data": {
"accessToken": null,
"refreshToken": null,
"loginType": "NAVER",
"socialUserInfo": {
"email": "test@naver.com",
"nickname": "홍길동",
"gender": "F",
"birthYear": 2002,
"profileImage": "https://...jpg"
},
"registered": false
}
}
"""))),
Expand Down
16 changes: 9 additions & 7 deletions src/main/resources/application-prod.properties
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ security.whitelist[3]=/swagger-ui/**
security.whitelist[4]=/api-docs/**
security.whitelist[5]=/api/member/check-email
security.whitelist[6]=/api/member/signup
security.whitelist[7]=/api/auth/login
security.whitelist[8]=/api/ingredient
security.whitelist[9]=/api/ingredient/challenge
security.whitelist[10]=/api/member/update-password
security.whitelist[11]=/api/member/email-verification/verify
security.whitelist[12]=/api/member/email-verification
security.whitelist[13]=/actuator/health
security.whitelist[7]=/api/member/signup/**
security.whitelist[8]=/api/auth/login
security.whitelist[9]=/api/auth/oauth/**
security.whitelist[10]=/api/ingredient
security.whitelist[11]=/api/ingredient/**
security.whitelist[12]=/api/member/update-password
security.whitelist[13]=/api/member/email-verification/verify
security.whitelist[14]=/api/member/email-verification
security.whitelist[15]=/actuator/health

# OpenAI api
openai.model=gpt-4o-mini
Expand Down