CSPACE-656 1-1 user-tenant association removed, added 1-many account-tenant association.
Default id provider is made less JBoss dependent. Tenant info is now put as group in security context with tenant as CSpaceTenant group-memeber
Common depends on authn service (for CSpaceTenant)
Account throws 400 if tenant and/or userid are missing. Provisioned test account with tenant association for testing purposes. Added account tests for the same.
Account client now packages all required classes. Used in authentication service tests.
Servicecontext now retrieves one or more tenants from security context before retrieving bindings. Still uses one tenant only (needs consumer to send tenant info if user is associated with n tenants. Client test now recognizes 401 for all service operations.
tests: service tests. account (new) tests. authn tests by enabling service side security
M services/authentication/service/src/main/java/org/collectionspace/authentication/CSpaceDBLoginModule.java
A services/authentication/service/src/main/java/org/collectionspace/authentication/DatabaseRealm.java
A services/authentication/service/src/main/java/org/collectionspace/authentication/CSpaceTenant.java
M services/authentication/service/src/main/resources/config/jboss-login-config.xml
M services/authentication/service/pom.xml
M services/authentication/jaxb/src/main/resources/authentication_identity_provider.xsd
M services/authentication/jaxb/pom.xml
M services/authentication/client/src/test/java/org/collectionspace/services/authentication/client/AuthenticationServiceTest.java
M services/authentication/client/src/main/resources/db/mysql/test_authn.sql
M services/authentication/client/src/main/resources/db/mysql/authentication.sql
M services/authentication/client/pom.xml
M services/JaxRsServiceProvider/src/main/resources/META-INF/persistence.xml
_M services/dimension/service
_M services/dimension/jaxb
M services/common/src/main/java/org/collectionspace/services/common/context/ServiceContext.java
M services/common/src/main/java/org/collectionspace/services/common/context/AbstractServiceContext.java
M services/common/pom.xml
M services/pom.xml
M services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountStorageClient.java
M services/account/service/src/main/java/org/collectionspace/services/account/storage/AccountDocumentHandler.java
M services/account/service/src/main/java/org/collectionspace/services/account/AccountResource.java
M services/account/service/pom.xml
M services/account/jaxb/src/main/resources/accounts_common.xsd
A services/account/client/src/test/java/org/collectionspace/services/account
A services/account/client/src/test/java/org/collectionspace/services/account/client
A services/account/client/src/test/java/org/collectionspace/services/account/client/test
A + services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountTest.java
A + services/account/client/src/test/java/org/collectionspace/services/account/client/test/AccountServiceTest.java
D services/account/client/src/test/java/org/collectionspace/services/client/test/AccountTest.java
D services/account/client/src/test/java/org/collectionspace/services/client/test/AccountServiceTest.java
D services/account/client/src/test/java/org/collectionspace/services/client/AccountClient.java
D services/account/client/src/test/java/org/collectionspace/services/client/AccountProxy.java
M services/account/client/src/test/resources/META-INF/persistence.xml
M services/account/client/src/test/resources/log4j.properties
A + services/account/client/src/main/java/org/collectionspace/services/client/AccountClient.java
A + services/account/client/src/main/java/org/collectionspace/services/client/AccountProxy.java
A services/account/client/src/main/resources/db/mysql/test_account.sql
M services/account/client/src/main/resources/db/mysql/account.sql
M services/account/client/pom.xml
M services/account/client/build.xml
M services/build.xml
M services/client/src/main/java/org/collectionspace/services/client/test/AbstractServiceTest.java
M services/client/src/main/java/org/collectionspace/services/client/test/ServiceRequestType.java