Skip to content

Commit 06c9b77

Browse files
committed
Fix #30915: add warning for deprecated social auth
1 parent 05d1fdb commit 06c9b77

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/main/java/eu/openanalytics/containerproxy/auth/impl/SocialAuthenticationBackend.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
*/
2121
package eu.openanalytics.containerproxy.auth.impl;
2222

23+
import org.slf4j.Logger;
24+
import org.slf4j.LoggerFactory;
2325
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
2426
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
2527
import org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer.AuthorizedUrl;
@@ -33,6 +35,15 @@
3335
public class SocialAuthenticationBackend implements IAuthenticationBackend {
3436

3537
public static final String NAME = "social";
38+
39+
public SocialAuthenticationBackend() {
40+
Logger logger = LoggerFactory.getLogger(getClass());
41+
logger.warn("WARNING: ###");
42+
logger.warn("WARNING: ###");
43+
logger.warn("WARNING: Social authentication is deprecated and will be removed in the next version (3.1.0)!");
44+
logger.warn("WARNING: ###");
45+
logger.warn("WARNING: ###");
46+
}
3647

3748
@Override
3849
public String getName() {

0 commit comments

Comments
 (0)