Skip to content

Commit 7a55ecb

Browse files
committed
Remove startup gate from OAuth plugin initialization to support dynamic config toggling
1 parent 42a8651 commit 7a55ecb

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

plugins/user-authenticators/oauth2/src/main/java/org/apache/cloudstack/oauth2/OAuth2AuthManagerImpl.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,8 @@ public List<Class<?>> getAuthCommands() {
6464

6565
@Override
6666
public boolean start() {
67-
if (isOAuthPluginEnabled(null)) {
68-
logger.info("OAUTH plugin loaded");
69-
initializeUserOAuth2AuthenticationProvidersMap();
70-
} else {
71-
logger.info("OAUTH plugin not enabled so not loading");
72-
}
67+
initializeUserOAuth2AuthenticationProvidersMap();
68+
logger.info("OAUTH plugin loaded");
7369
return true;
7470
}
7571

0 commit comments

Comments
 (0)