es.apba.infra.esb.support:apba-realm

Bundle containing a realm to be used by APBA bundles

License

License

Categories

Categories

Realm Data Databases
GroupId

GroupId

es.apba.infra.esb.support
ArtifactId

ArtifactId

apba-realm
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

bundle
Description

Description

es.apba.infra.esb.support:apba-realm
Bundle containing a realm to be used by APBA bundles
Project URL

Project URL

https://github.com/adtapba/apba-realm
Source Code Management

Source Code Management

https://github.com/adtapba/apba-realm

Download apba-realm

Dependencies

compile (5)

Group / Artifact Type Version
org.apache.camel : camel-core jar 2.15.2
org.apache.camel : camel-blueprint jar 2.15.2
org.slf4j : slf4j-api jar 1.7.12
org.slf4j : slf4j-log4j12 jar 1.7.12
log4j : log4j jar 1.2.17

test (1)

Group / Artifact Type Version
org.apache.camel : camel-test-blueprint jar 2.15.2

Project Modules

There are no modules declared in this project.

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>
es.apba.infra.esb.support

APBA

Port of Algeciras Bay Authority

Versions

Version
1.0.0