![](/img/trans.png)
[英]Retrieving the challenge questions present in /_system/config/repository/components/org.wso2.carbon.identity.mgt/questionCollection location
[英]WSO2 IS - Difference between Story Challenge Questions on /identity/questionCollection VS org.wso2.carbon.identity.mgt/questionCollection
想了解在 WSO2 中存儲挑戰問題的區別如下所示。 哪種方法好,推薦哪種方法和各自的 API?
遵循以下哪種方案?
1. 方法一 -在org.wso2.carbon.identity.mgt/questionCollection中存儲挑戰問題,如下所示。
/_system/config/repository/components/org.wso2.carbon.identity.mgt/questionCollection
期望-
- 分享上述問題的REST API列表- 這種方法在WSO2 IS 6.0.0中可用嗎?
2. 方法二- 在identity/questionCollection中存儲挑戰問題,如下所示。 **
/_system/config/identity/questionCollection
期望-
- 分享以上問題的REST API列表
/_system/config/repository/components/org.wso2.carbon.identity.mgt/questionCollection
中存儲的挑戰問題由UserIdentityManagementAdminService
管理。 它的setChallengeQuestions
服務用於為服務器設置問題。 getAllChallengeQuestions
服務用於檢索存儲在此位置的問題。 使用setChallengeQuestionsOfUser
服務,我們可以為每個用戶設置挑戰問題和答案,問題是從這個位置獲取的。 我完全不確定在UserIdentityManagementAdminService
中提供關於此位置的挑戰問題和挑戰問題管理服務的原因。/_system/config/repository/components/org.wso2.carbon.identity.mgt/questionCollection
位置中維護的挑戰問題。/_system/config/identity/questionCollection
位置的服務器的挑戰問題,並為用戶設置挑戰問題。 如果您使用管理控制台 UI https://is.docs.wso2.com/en/5.11.0/learn/managing-challenge-questions/#adding-a-challenge-question-set配置服務器的挑戰問題/ChallengeQuestionManagementAdminService 管理服務它應該更新/_system/config/identity/questionCollection
位置中的問題。
https://github.com/wso2/identity-api-server/blob/master/components/org.wso2.carbon.identity.api.server.challenge/org.wso2.carbon.identity.rest.8842chalenge.8813902 v1/src/main/resources/challenge.yaml這個就是對應的REST API 來管理服務器中的挑戰題。 (換句話說,這個 REST API 管理存儲在/_system/config/identity/questionCollection
位置的問題。)參考: https://stackoverflow.com/a/73870503/10055162
https://is.docs.wso2.com/en/latest/apis/challenge-rest-api/#/這個REST API用於獲取服務器中用戶可以回答的可用問題,設置挑戰問題所選問題 y 用戶的答案,並檢索已回答問題的答案。
如果您使用存儲在/_system/config/repository/components/org.wso2.carbon.identity.mgt/questionCollection
位置的問題,現在您需要在 IS-6.0.0 中使用 REST API,最好移動使用https://github.com/wso2/identity-api-server/blob/master/components/org.wso2.carbon.identity.api.server.challenge/org.wso2.carbon.identity 向正確的地方提問。 rest.api.server.challenge.v1/src/main/resources/challenge.yaml t API/管理控制台根據當前題目的questionSetId
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.