我正在尝试使用 Curl 命令生成一个强制“ adminForcedPasswordReset ”为true的 OTP(一次性密码) :
curl -v -k --user admin:admin -X PATCH -d
'{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","value":{"adminForcedPasswordReset":"true"}}]}' --header "Content-Type:application/json"
https://XXXXXXXX:9443/scim2/Users/5cc8f65f-8be7-4e34-bd2f-67dc409f6770
我在日志中收到的内容:
TID: [-1234] [] [2018-05-28 13:18:39,395] INFO {org.wso2.carbon.identity.scim2.common.impl.SCIMUserManager} - User: dev is retrieved through SCIM.
TID: [-1234] [] [2018-05-28 13:18:39,524] INFO {org.wso2.carbon.identity.scim2.common.impl.SCIMUserManager} - User: dev updated through SCIM.
TID: [-1234] [] [2018-05-28 13:18:39,600] INFO {org.wso2.carbon.identity.scim2.common.impl.SCIMUserManager} - User: dev is retrieved through SCIM.
但是没有生成OTP!adminForcedPasswordReset 也未设置为 true。
它适用于引用此url的肥皂请求