gpt4 book ai didi

keycloak - 如何在keycloak主题中使用我自己的常用文件?

转载 作者:行者123 更新时间:2023-12-04 17:20:05 25 4
gpt4 key购买 nike

我想在我的 keycloak 主题中使用公共(public)资源,但导入功能用于扩展现有主题,但如何在我的主题中使用公共(public)资源?
我想导入我自己的公共(public)文件,但根据文档,导入只允许使用另一个主题的公共(public)文件,但如何在不扩展另一个主题的情况下使用它?
我的结构

.
├── META-INF/
│ └── keycloak-themes.json
└── theme/
└── my-custom-theme/
├── account/
│ ├── *.ftl
│ └── theme.properties
├── common/
│ └── resources/
│ └── css/
│ └── bootstrap.min.css
└── login
在我的 theme.properties (登录)
locales=en,fr
styles=css/login.css

# which I already tried
# -> by default keycloak use common/keycloak (but how to change to my own common resources ? I tried this import=common/my-custom-theme but I have an error 500)
stylesCommon=css/bootstrap.min.css (it's bootstrap file of keycloak (3.4.1 :/)
有人有想法吗?

最佳答案

我通过将以下内容添加到我的 theme.properties 中解决了它:

import=common/my-custom-theme
styles=css/bootstrap.min.css
# stylesCommon=css/bootstrap.min.css <-- not working
使用 Keycloak 服务器版本进行了测试 15.0.2

关于keycloak - 如何在keycloak主题中使用我自己的常用文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66693715/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com