From 3c54046dc2b8d3fdb638dccd683b555ae22c25a5 Mon Sep 17 00:00:00 2001 From: DarioGii Date: Wed, 26 Feb 2025 09:55:35 +0000 Subject: [PATCH] reverted path in oauth 2 redirectUri --- .../software/SPDF/config/security/SecurityConfiguration.java | 2 +- .../SPDF/config/security/oauth2/OAuth2Configuration.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/stirling/software/SPDF/config/security/SecurityConfiguration.java b/src/main/java/stirling/software/SPDF/config/security/SecurityConfiguration.java index 318ca190..289071b0 100644 --- a/src/main/java/stirling/software/SPDF/config/security/SecurityConfiguration.java +++ b/src/main/java/stirling/software/SPDF/config/security/SecurityConfiguration.java @@ -285,7 +285,7 @@ public class SecurityConfiguration { }); } } else { - log.info("SAML 2 login is not enabled. Using default."); + log.debug("SAML 2 login is not enabled. Using default."); http.authorizeHttpRequests(authz -> authz.anyRequest().permitAll()); } return http.build(); diff --git a/src/main/java/stirling/software/SPDF/config/security/oauth2/OAuth2Configuration.java b/src/main/java/stirling/software/SPDF/config/security/oauth2/OAuth2Configuration.java index afe83bc7..4fe03c48 100644 --- a/src/main/java/stirling/software/SPDF/config/security/oauth2/OAuth2Configuration.java +++ b/src/main/java/stirling/software/SPDF/config/security/oauth2/OAuth2Configuration.java @@ -200,7 +200,7 @@ public class OAuth2Configuration { .scope(oidcProvider.getScopes()) .userNameAttributeName(oidcProvider.getUseAsUsername().getName()) .clientName(clientName) - .redirectUri(REDIRECT_URI_PATH + name) + .redirectUri(REDIRECT_URI_PATH + "oidc") .authorizationGrantType(AUTHORIZATION_CODE) .build()) : Optional.empty();