diff --git a/undertow/src/main/java/org/wildfly/extension/undertow/deployment/UndertowDeploymentInfoService.java b/undertow/src/main/java/org/wildfly/extension/undertow/deployment/UndertowDeploymentInfoService.java
index <HASH>..<HASH> 100644
--- a/undertow/src/main/java/org/wildfly/extension/undertow/deployment/UndertowDeploymentInfoService.java
+++ b/undertow/src/main/java/org/wildfly/extension/undertow/deployment/UndertowDeploymentInfoService.java
@@ -296,12 +296,13 @@ public class UndertowDeploymentInfoService implements Service<DeploymentInfo> {
                 handleJASPIMechanism(deploymentInfo);
                 handleJACCAuthorization(deploymentInfo);
                 handleAuthManagerLogout(deploymentInfo, mergedMetaData);
+
+                if(mergedMetaData.isUseJBossAuthorization()) {
+                    deploymentInfo.setAuthorizationManager(new JbossAuthorizationManager(deploymentInfo.getAuthorizationManager()));
+                }
             }
             handleAdditionalAuthenticationMechanisms(deploymentInfo);
 
-            if(mergedMetaData.isUseJBossAuthorization()) {
-                deploymentInfo.setAuthorizationManager(new JbossAuthorizationManager(deploymentInfo.getAuthorizationManager()));
-            }
 
             SessionConfigMetaData sessionConfig = mergedMetaData.getSessionConfig();
             if(sharedSessionManagerConfig != null && sharedSessionManagerConfig.getSessionConfig() != null) {
Don't use JbossAuthorizationManager if Elytron is in use