WSO2 IS: claim-config.xml - 它只读一次,还是每次服务器启动时?
WSO2 IS: claim-config.xml - Is it read only once, or every time the server is started up?
The WSO2 IS documentation reads:
"The claim dialects configured in /repository/conf/claim-config.xml file get applied only when you start the product for the first time, or for any newly created tenants. With the first startup, claim dialects and claims will be loaded from the file and persisted in the database. Any consecutive updates to the file will not be picked up and claim dialects and claims will be loaded from the database."
这是否意味着 claim-config.xml 是一个用于为数据库做种的文件并且只有 运行 一次?如果它仅用于为数据库做种,那意味着在服务器第一次启动后更新声明的唯一方法是直接编辑数据库或通过控制台更新声明,对吗?
我正在尝试找出更新我在 WSO2 IS 中对服务提供商的声明的最佳方法。
我发现claim-config.xml只有一次运行。数据库播种后,不再读取该文件。对声明配置的后续更改将写入位于 WSO2_INSTALL_LOCATION\repository\database
的 WSO2CARBON_DB 文件
当 WSO2 IS 第一次启动时,或创建新租户时,它会读取 claim-config.xml
文件并将声明填充到数据库中。然后您可以通过以下方法管理声明,
- 来自管理控制台。更多请参考文档[1]
细节。
- 使用
ClaimMetadataManagementService
。请参阅
有关详细信息,请参阅文档 [2]。
[1] https://docs.wso2.com/display/IS570/Configuring+Claims
[2] https://docs.wso2.com/display/IS570/Managing+Claims+with+APIs
The WSO2 IS documentation reads:
"The claim dialects configured in /repository/conf/claim-config.xml file get applied only when you start the product for the first time, or for any newly created tenants. With the first startup, claim dialects and claims will be loaded from the file and persisted in the database. Any consecutive updates to the file will not be picked up and claim dialects and claims will be loaded from the database."
这是否意味着 claim-config.xml 是一个用于为数据库做种的文件并且只有 运行 一次?如果它仅用于为数据库做种,那意味着在服务器第一次启动后更新声明的唯一方法是直接编辑数据库或通过控制台更新声明,对吗?
我正在尝试找出更新我在 WSO2 IS 中对服务提供商的声明的最佳方法。
我发现claim-config.xml只有一次运行。数据库播种后,不再读取该文件。对声明配置的后续更改将写入位于 WSO2_INSTALL_LOCATION\repository\database
的 WSO2CARBON_DB 文件当 WSO2 IS 第一次启动时,或创建新租户时,它会读取 claim-config.xml
文件并将声明填充到数据库中。然后您可以通过以下方法管理声明,
- 来自管理控制台。更多请参考文档[1] 细节。
- 使用
ClaimMetadataManagementService
。请参阅 有关详细信息,请参阅文档 [2]。
[1] https://docs.wso2.com/display/IS570/Configuring+Claims
[2] https://docs.wso2.com/display/IS570/Managing+Claims+with+APIs