Last active
December 22, 2015 22:19
-
-
Save darranl/6539085 to your computer and use it in GitHub Desktop.
Illustration of use-realm-roles configuration.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"role-mapping" => { | |
"Monitor" => { | |
"exclude" => undefined, | |
"include" => {"group-Monitor" => { | |
"name" => "Monitor", | |
"realm" => undefined, | |
"type" => "GROUP" | |
}} | |
}, | |
"Operator" => { | |
"exclude" => undefined, | |
"include" => {"group-Operator" => { | |
"name" => "Operator", | |
"realm" => undefined, | |
"type" => "GROUP" | |
}} | |
}, | |
"Maintainer" => { | |
"exclude" => undefined, | |
"include" => {"group-Maintainer" => { | |
"name" => "Maintainer", | |
"realm" => undefined, | |
"type" => "GROUP" | |
}} | |
}, | |
"Deployer" => { | |
"exclude" => undefined, | |
"include" => {"group-Deployer" => { | |
"name" => "Deployer", | |
"realm" => undefined, | |
"type" => "GROUP" | |
}} | |
}, | |
"Administrator" => { | |
"exclude" => undefined, | |
"include" => {"group-Administrator" => { | |
"name" => "Administrator", | |
"realm" => undefined, | |
"type" => "GROUP" | |
}} | |
}, | |
"Auditor" => { | |
"exclude" => undefined, | |
"include" => {"group-Auditor" => { | |
"name" => "Auditor", | |
"realm" => undefined, | |
"type" => "GROUP" | |
}} | |
}, | |
"SuperUser" => { | |
"exclude" => undefined, | |
"include" => {"group-SuperUser" => { | |
"name" => "SuperUser", | |
"realm" => undefined, | |
"type" => "GROUP" | |
}} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<security-realm name="ManagementRealm"> | |
<authentication> | |
<local default-user="$local"/> | |
<properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/> | |
</authentication> | |
<authorization map-groups-to-roles="false"> | |
<properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/> | |
</authorization> | |
</security-realm> | |
<access-control provider="simple"> | |
<role-mapping use-realm-roles="false"> | |
<role name="Monitor"> | |
<include> | |
<group name="Monitor"/> | |
</include> | |
</role> | |
<role name="Operator"> | |
<include> | |
<group name="Operator"/> | |
</include> | |
</role> | |
<role name="Maintainer"> | |
<include> | |
<group name="Maintainer"/> | |
</include> | |
</role> | |
<role name="Deployer"> | |
<include> | |
<group name="Deployer"/> | |
</include> | |
</role> | |
<role name="Administrator"> | |
<include> | |
<group name="Administrator"/> | |
</include> | |
</role> | |
<role name="Auditor"> | |
<include> | |
<group name="Auditor"/> | |
</include> | |
</role> | |
<role name="SuperUser"> | |
<include> | |
<group name="SuperUser"/> | |
</include> | |
</role> | |
</role-mapping> | |
</access-control> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<role-mapping use-realm-roles="true"> | |
<role name="Operator"> | |
<include> | |
<group name="Monitor"/> | |
</include> | |
<exclude> | |
<user name="BadUser"/> | |
</exclude> | |
</role> | |
</role-mapping> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<security-realm name="ManagementRealm"> | |
<authentication> | |
<local default-user="$local"/> | |
<properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/> | |
</authentication> | |
<authorization map-groups-to-roles="true"> | |
<properties path="mgmt-groups.properties" relative-to="jboss.server.config.dir"/> | |
</authorization> | |
</security-realm> | |
<access-control provider="simple"> | |
<role-mapping use-realm-roles="true"> | |
</role-mapping> | |
</access-control> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"role-mapping" => {"Operator" => { | |
"exclude" => {"user-BadUser" => { | |
"name" => "BadUser", | |
"realm" => undefined, | |
"type" => "USER" | |
}}, | |
"include" => { | |
"group-Operator" => { | |
"name" => "Operator", | |
"realm" => undefined, | |
"type" => "GROUP" | |
}, | |
"group-Monitor" => { | |
"name" => "Monitor", | |
"realm" => undefined, | |
"type" => "GROUP" | |
} | |
} | |
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<role-mapping use-realm-roles="false"> | |
<role name="Operator"> | |
<include> | |
<group name="Operator"/> | |
<group name="Monitor"/> | |
</include> | |
<exclude> | |
<user name="BadUser"/> | |
</exclude> | |
</role> | |
</role-mapping> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment