Working on OAuth 2 config

This commit is contained in:
DarioGii
2025-01-21 11:43:44 +00:00
committed by Dario Ghunney Ware
parent 69da443096
commit 81c8b9f152
6 changed files with 43 additions and 38 deletions

View File

@@ -158,8 +158,7 @@ public class CustomLogoutSuccessHandler extends SimpleUrlLogoutSuccessHandler {
String clientId = null;
OAUTH2 oauth = applicationProperties.getSecurity().getOauth2();
if (authentication instanceof OAuth2AuthenticationToken) {
OAuth2AuthenticationToken oauthToken = (OAuth2AuthenticationToken) authentication;
if (authentication instanceof OAuth2AuthenticationToken oauthToken) {
registrationId = oauthToken.getAuthorizedClientRegistrationId();
try {