Skip to content

Bundle containing a realm to be used by APBA bundles

License

Notifications You must be signed in to change notification settings

adtapba/apba-realm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bundle containing a realm to be used by APBA bundles

It makes available a JAAS properties login module. When deployed, it creates a file named usersapba.properties on the etc directory of Apache ServiceMix 6.0.0, which contains users, groups and roles.

Karaf installation command

bundle:install -s mvn:es.apba.infra.esb.support/apba-realm/1.0.0-SNAPSHOT

Sample use on Karaf

jaas:realm-manage --realm apba

jaas:user-add aismanager_adminuser test1234

jaas:group-add aismanager_adminuser GROUP_AISMANAGER_ADMIN_USERS

jaas:group-role-add GROUP_AISMANAGER_ADMIN_USERS ROLE_AISMANAGER_PUBLISHERS
jaas:group-role-add GROUP_AISMANAGER_ADMIN_USERS ROLE_AISMANAGER_PROXY_SERVICES_ADMIN_USERS

jaas:update

Sample use on a Blueprint context definition for a bundle

<bean id="authenticationInterceptor" class="org.apache.cxf.interceptor.security.JAASLoginInterceptor">
    <property name="contextName" value="apba"/>
    <property name="roleClassifier" value="ROLE_"/> 
</bean>

About

Bundle containing a realm to be used by APBA bundles

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published