Hi everyone,
we are developing an extension of alfresco content service using the maven archetype.
Now, we would like to use keycloak for identity and access management.
We follow this guide Deploying Alfresco DBP with Identity Service using Docker Compose .
Everything work fine for authentication. Issues come when we try to use users and groups from keycloak.
We learned that, at the moment, the only way to sync users (and groups) between keycloak and alfresco is by SAML Module, that is available only for enterprise customer and we are using the community edition.
We found another module alfresco-keycloak, but we were unable to integrate it.
I think that the mantainer of this module is @afaust .
To integrate alfresco-keycloak we define these dependencies in our alfresco acs pom
<dependency>
<groupId>de.acosix.alfresco.utility</groupId>
<artifactId>de.acosix.alfresco.utility.repo</artifactId>
<version>1.3.0-SNAPSHOT</version>
<classifier>installable</classifier>
</dependency>
<dependency>
<groupId>de.acosix.alfresco.keycloak</groupId>
<artifactId>de.acosix.alfresco.keycloak.repo</artifactId>
<version>1.1.0-rc7-SNAPSHOT</version>
<classifier>installable</classifier>
</dependency>
The 1.3.0-SNAPSHOT and 1.1.0-rc7-SNAPSHOT is the latest deployed on https://oss.sonatype.org/content/repositories/snapshots
Cutted stacktrace
Error creating bean with name 'keycloakDeployment'
Caused by: java.lang.IllegalArgumentException: You did not supply enough values to fill path parameters
edi-acs_1 | at de.acosix.alfresco.keycloak.deps.keycloak.common.util.KeycloakUriBuilder.buildFromValues(KeycloakUriBuilder.java:577)
Configuration
authentication.chain=keycloak1:keycloak,alfrescoNtlm1:alfrescoNtlm
keycloak.adapter.auth-server-url=${KEYCLOAK_URL}
keycloak.adapter.credentials.provider=secret
keycloak.adapter.realm=${KEYCLOAK_REALM}
keycloak.adapter.resource=${KEYCLOAK_CLIENT}
keycloak.adapter.credentials.secret=xxxxxxxx${KEYCLOAK_URL} ${KEYCLOAK_REALM} ${KEYCLOAK_CLIENT} are set through -D options
Maybe he could help us...
Thanks