如何在 WSO2 IS 5.9 的 deployment.toml 中为 CustomUserStore 添加额外的 属性
How to add an additional property for CustomUserStore in deployment.toml in WSO2 IS 5.9
我的 CustomUserStore 是主要用户存储。
在以前的版本中,可以在 user-mgt.xml 中添加其他属性,例如:
<UserStoreManager class="com.company.CustomUserStoreManager">
...
<Property name="host">remotebox</Property> // my two additional properties
<Property name="port">5580</Property>
</UserStoreManager>
但是当我尝试将它们添加到 deployment.toml 时,例如:
[user_store]
type = "database"
class = "com.company.CustomUserStoreManager"
host = "remotebox"
port = 5580
然后我的属性没有添加到结果用户-mgt.xml
您可以从 deployment.toml 文件中向用户存储添加自定义属性,如下所示。
[user_store]
type = "database"
class = "com.company.CustomUserStoreManager"
[user_store.properties]
host = "remotebox"
port = "5580"
我的 CustomUserStore 是主要用户存储。 在以前的版本中,可以在 user-mgt.xml 中添加其他属性,例如:
<UserStoreManager class="com.company.CustomUserStoreManager">
...
<Property name="host">remotebox</Property> // my two additional properties
<Property name="port">5580</Property>
</UserStoreManager>
但是当我尝试将它们添加到 deployment.toml 时,例如:
[user_store]
type = "database"
class = "com.company.CustomUserStoreManager"
host = "remotebox"
port = 5580
然后我的属性没有添加到结果用户-mgt.xml
您可以从 deployment.toml 文件中向用户存储添加自定义属性,如下所示。
[user_store]
type = "database"
class = "com.company.CustomUserStoreManager"
[user_store.properties]
host = "remotebox"
port = "5580"