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 17183d9 + 62216e4 commit e0c1996
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 e0c1996

Please sign in to comment.