【发布时间】:2020-02-20 18:32:18
【问题描述】:
我在我的 Spring Boot 应用程序中使用 Alfresco。我想使用身份验证子系统(身份服务)。我已经给出了在 alfresco-global.properties 中使用的配置。 它没有连接到 Keycloak。日志中没有发现错误。我可以在日志中找到身份验证子系统启动。
[restartedMain] a.i.IdentityServiceDeploymentFactoryBean:Keycloak JWKS URL:http://localhost:8011/auth/realms/alfresco-dbp/protocol/openid-connect/certs 2019-10-24 16:41:34.956 INFO --- [restartedMain] a.i.IdentityServiceDeploymentFactoryBean:Keycloak 领域:alfresco-dbp 2019-10-24 16:41:34.956 INFO --- [restartedMain] a.i.IdentityServiceDeploymentFactoryBean:Keycloak 客户端 ID:alfresco-client 2019-10-24 16:41:34.958 INFO --- [restartedMain] o.a.r.m.s.ChildApplicationContextFactory:“身份验证”子系统的启动,ID:[身份验证,托管,身份服务 1] 完成
【问题讨论】:
-
你配置KeyCloak作为Authentication子系统了吗?可以分享您的配置详细信息吗?
-
authentication.chain=identity-service1:identity-service,alfrescoNtlm1:alfrescoNtlm identity-service.authentication.enabled=true identity-service.enable-basic-auth=true identity-service.authentication.defaultAdministratorUserNames =admin identity-service.authentication.validation.failure.silent=false identity-service.auth-server-url=localhost:8011/auth identity-service.realm=alfresco-dbp identity-service.resource=alfresco-client 身份服务。 public-client=true identity-service.ssl-required=none
-
使用相同的配置,我可以在 alfresco-community-6.1 中运行。在 Spring Boot 中,我使用具有相同配置的 alfresco-repository 版本 7.9,但它不起作用