Skip to content

ssilvert/jsf-console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsf-console

JSF-based JBoss Admin Console used as a proof-of-concept to show dynamic plugins, auto-generated UI, fine-grained autorization, and i18n.

To run the JSF Console, deploy the WAR created in the "myconsole" project. The WAR that "core" produces is also deployable.

Note that currently this does not work on Undertow. So for newer versions of WildFly you will need to use JBossWeb. Start the server with -c standalone-jbossweb.xml

To log in, you will need to create users with the WildFly add-user tool. There are four hard-coded roles. They are admin, user, superuser, and super-duper-user. If you log in as admin you can grant rights to the other roles concerning what plugins they can see and also what resources and attributes they can see in management-model. The rights are only persisted in memory right now, so they go away if you redploy the console.


Here is a sample run of add-user that creates an admin user for the JSF Console. Note that you are creating an Application User in ApplicationRealm:

C:\as7trunk\jboss-as\build\target\jboss-as-8.0.0.Alpha1-SNAPSHOT\bin>add-user

What type of user do you wish to add?
a) Management User (mgmt-users.properties)
b) Application User (application-users.properties)
(a): b

Enter the details of the new user to add.
Realm (ApplicationRealm) :
Username : myadminuser

Password :
Re-enter Password :
What roles do you want this user to belong to? (Please enter a commaseparated list, or leave blank for none)[ ]: admin
About to add user 'myadminuser' for realm 'ApplicationRealm'
Is this correct yes/no? yes
Added user 'myadminuser' to file
'C:\as7trunk\jboss-as\build\target\jboss-as-8.0.0.Alpha1-SNAPSHOT\standalone\configuration\application-users.properties'
Added user 'myadminuser' to file 'C:\as7trunk\jboss-as\build\target\jboss-as-8.0.0.Alpha1-SNAPSHOT\domain\configuration\application-users.properties'
Added user 'myadminuser' with roles admin to file 'C:\as7trunk\jboss-as\build\target\jboss-as-8.0.0.Alpha1-SNAPSHOT\standalone\configuration\application-roles.properties'

Added user 'myadminuser' with roles admin to file 'C:\as7trunk\jboss-as\build\target\jboss-as-8.0.0.Alpha1-SNAPSHOT\domain\configuration\application-roles.properties'
Is this new user going to be used for one AS process to connect to another AS process?
e.g. for a slave host controller connecting to the master or for a Remoting connection for server to server EJB calls.
yes/no? yes
To represent the user add the following to the server-identities definition
Press any key to continue . . .

About

JSF-based AS Admin Console

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages