Created
August 26, 2022 16:41
-
-
Save stefanozanella/d1ef93b77d0cb3d897c447b7938b0138 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
class WebSecurityConfig { | |
@Bean | |
fun oauth2Configuration(http: HttpSecurity): SecurityFilterChain = | |
http | |
.oauth2Client() | |
.and() | |
.oauth2Login() | |
.redirectionEndpoint() | |
.baseUri("/oauth2/callback/*") | |
.and().and() | |
.build() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment