Skip to content

Commit

Permalink
Merge pull request #183 from a-romantic-cat/feat/182
Browse files Browse the repository at this point in the history
πŸ› oauth2 uri, νšŒμ›κ°€μž… api μˆ˜μ •
  • Loading branch information
yerimm99 authored Feb 19, 2024
2 parents 2edd509 + dfd72b7 commit c794f67
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.and()
.authorizeRequests() // μš”μ²­μ— λŒ€ν•œ 인증 μ„€μ •
.antMatchers("/v3/api-docs/**", "/swagger-ui/**", "/swagger-resources/**").permitAll()
.antMatchers("/", "/login", "/Signup/**", "/nangman-collection/",
.antMatchers("/", "/login", "/signUp/**", "/nangman-collection/",
"/nangman-collection/{nangmanLetterId}/like",
"/nangman-collection/{nangmanLetterId}").permitAll()
.antMatchers("/token/**").permitAll() // 토큰 λ°œκΈ‰μ„ μœ„ν•œ κ²½λ‘œλŠ” λͺ¨λ‘ ν—ˆμš©
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo
} else {

// νšŒμ›μ΄ μ‘΄μž¬ν•˜μ§€ μ•Šμ„κ²½μš°, μ„œλΉ„μŠ€ μ œκ³΅μžμ™€ email을 쿼리슀트링으둜 μ „λ‹¬ν•˜λŠ” url을 λ§Œλ“€μ–΄μ€€λ‹€.
String targetUrl = UriComponentsBuilder.fromUriString("http://localhost:3000/Signup")
String targetUrl = UriComponentsBuilder.fromUriString("http://localhost:3000/signUp")
.queryParam("email", (String) oAuth2User.getAttribute("email"))
.queryParam("provider", provider)
.build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class MemberController {

private final MemberService service;

@PostMapping("/Signup")
@PostMapping("/signUp")
@ApiOperation(value = "νšŒμ›κ°€μž… API", notes = "νšŒμ›κ°€μž… APIμž…λ‹ˆλ‹€.")
public ApiResponse<MemberResponseDTO.MemberJoinResultDTO> signup(@RequestBody String nickname,
@RequestParam String email) {
Expand Down

0 comments on commit c794f67

Please sign in to comment.