Skip to content

Commit

Permalink
Merge pull request #173 from a-romantic-cat/feat/176
Browse files Browse the repository at this point in the history
๐Ÿ› uri ๋ณ€๊ฒฝ, token ์ฟผ๋ฆฌ ์ „๋‹ฌ
  • Loading branch information
yerimm99 authored Feb 19, 2024
2 parents 8094b68 + 2e294f3 commit 167a962
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ 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() // ํ† ํฐ ๋ฐœ๊ธ‰์„ ์œ„ํ•œ ๊ฒฝ๋กœ๋Š” ๋ชจ๋‘ ํ—ˆ์šฉ
.antMatchers("/token/**", "/oauth2/**").permitAll() // ํ† ํฐ ๋ฐœ๊ธ‰์„ ์œ„ํ•œ ๊ฒฝ๋กœ๋Š” ๋ชจ๋‘ ํ—ˆ์šฉ
.antMatchers("/css/**", "/images/**", "/js/**", "/favicon.ico", "/h2-console/**").permitAll()
.anyRequest().authenticated() // ๊ทธ ์™ธ์˜ ๋ชจ๋“  ์š”์ฒญ์€ ์ธ์ฆ์ด ํ•„์š”ํ•˜๋‹ค.
.and()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void onAuthenticationSuccess(HttpServletRequest request, HttpServletRespo

// accessToken์„ ์ฟผ๋ฆฌ์ŠคํŠธ๋ง์— ๋‹ด๋Š” url์„ ๋งŒ๋“ค์–ด์ค€๋‹ค.
String targetUrl = UriComponentsBuilder.fromUriString("https://dev.nangmancat.shop/")
//.queryParam("accessToken", token.getAccessToken())
.queryParam("accessToken", token.getAccessToken())
.build()
.encode(StandardCharsets.UTF_8)
.toUriString();
Expand Down

0 comments on commit 167a962

Please sign in to comment.