第 5 章 profiles
默认情况下,Red Hat Single Sign-On 有以下启用的功能,这些功能不包括没有完全支持的功能。另外,还有默认启用的一些功能,但可以禁用该功能。
可启用和禁用的功能有:
| 名称 | Description | 默认启用 | 支持级别 |
|---|---|---|---|
| account2 | 新帐户管理控制台 | 是 | 支持 |
| account_api | 帐户管理 REST API | 是 | 支持 |
| admin_fine_grained_authz | 精细授予管理权限 | 否 | 预览 |
| ciba | OpenID Connect 客户端发起后端身份验证(CIBA) | 是 | 支持 |
| client_policies | 添加客户端配置策略 | 是 | 支持 |
| PAR | OAuth 2.0 推送身份验证请求(PAR) | 是 | 支持 |
| declarative_user_profile | 使用声明式风格配置用户配置集 | 否 | 预览 |
| docker | Docker Registry 协议 | 否 | 支持 |
| 模拟 | 管理员能够模拟用户 | 是 | 支持 |
| openshift_integration | 启用保护 OpenShift 的扩展 | 否 | 预览 |
| 脚本 | 使用 JavaScript 编写自定义验证器 | 否 | 预览 |
| token_exchange | 令牌交换服务 | 否 | 预览 |
| upload_scripts | 上传脚本 | 否 | 已弃用 |
| web_authn | W3C Web 身份验证(WebAuthn) | 否 | 预览 |
要启用所有预览功能,请使用以下内容启动服务器:
bin/standalone.sh|bat -Dkeycloak.profile=preview
bin/standalone.sh|bat -Dkeycloak.profile=preview
您可以通过在域模式中为 server-one 创建文件 standalone/configuration/profile.properties (或 domain/servers/server-one/configuration/profile.properties )来永久设置此设置。将以下内容添加到该文件中:
profile=preview
profile=preview
启用特定功能以通过以下方式启动服务器:
bin/standalone.sh|bat -Dkeycloak.profile.feature.<feature name>=enabled
bin/standalone.sh|bat -Dkeycloak.profile.feature.<feature name>=enabled
例如,要启用 Docker,请使用 -Dkeycloak.profile.feature.docker=enabled。
您可以通过添加以下内容在 profile.properties 文件中永久设置此项:
feature.docker=enabled
feature.docker=enabled
要禁用特定功能,请使用以下内容启动服务器:
bin/standalone.sh|bat -Dkeycloak.profile.feature.<feature name>=disabled
bin/standalone.sh|bat -Dkeycloak.profile.feature.<feature name>=disabled
例如,禁用 Impersonation use -Dkeycloak.profile.feature.impersonation=disabled。
您可以通过添加以下内容在 profile.properties 文件中永久设置此项:
feature.impersonation=disabled
feature.impersonation=disabled