Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
HeeSung98 committed Nov 25, 2023
1 parent a24a542 commit 2fe41c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public class SecurityConfig {

@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception{
http.formLogin(login -> login.loginPage("https://weatherfit-frontend.vercel.app/login").successHandler(loginSuccessHandler()));
http.authorizeHttpRequests(auth -> auth.requestMatchers("/**").permitAll());
http.formLogin(login -> login.loginPage("/hello").successHandler(loginSuccessHandler()));
http.csrf((csrf) -> csrf.disable());
http.oauth2Login(Customizer.withDefaults());
http.logout(Customizer.withDefaults());
Expand Down
2 changes: 1 addition & 1 deletion user/src/main/resources/templates/hello.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<title>Title</title>
</head>
<body>
test!
<a href="/oauth2/authorization/google">hello</a>
</body>
</html>
3 changes: 2 additions & 1 deletion user/src/main/resources/templates/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<title>Title</title>
</head>
<body>
으에엥
<a href="/oauth2/authorization/google">으에엥</a>

</body>
</html>

0 comments on commit 2fe41c1

Please sign in to comment.