Skip to content

Commit

Permalink
Merge pull request #32 from AmorGakCo/hotfix/#31
Browse files Browse the repository at this point in the history
hotfix: oauth2 baseurl 변경
  • Loading branch information
songhaechan authored Aug 19, 2024
2 parents 9a4a490 + e24ccef commit 23735cb
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ public SecurityFilterChain securityFilterChain(final HttpSecurity http) throws E
.sessionManagement(c -> c.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
.oauth2Login(
oauth ->
oauth.userInfoEndpoint(c -> c.userService(oauth2UserService))
.successHandler(oauth2SuccessHandler))
{
oauth.userInfoEndpoint(c -> c.userService(oauth2UserService))
.successHandler(oauth2SuccessHandler);
oauth.authorizationEndpoint(c->c.baseUri("/api/auth/callback"));
})
.addFilterBefore(
jwtAuthenticationFilter, UsernamePasswordAuthenticationFilter.class)
.addFilterBefore(jwtExceptionHandlingFilter, JwtAuthenticationFilter.class)
Expand Down

0 comments on commit 23735cb

Please sign in to comment.