Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save stefanozanella/d1ef93b77d0cb3d897c447b7938b0138 to your computer and use it in GitHub Desktop.
Save stefanozanella/d1ef93b77d0cb3d897c447b7938b0138 to your computer and use it in GitHub Desktop.
@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