我在使用 WSO2 IS 中的 TOTP 管理服务时遇到问题(https://docs.wso2.com/display/ISCONNECTORS/Using+the+TOTP+API#UsingtheTOTPAPI-EnableTOTPEnableTOTP)。我发送以下请求:
curl -i -X POST -H 'Content-Type:application/x-www-form-urlencoded' -H "Authorization:Basic YWRtaW46TGF0aW51czAx" https://192.168.0.238:9443/services/TOTPAdminService/resetTOTP -k -d 'username=admin'
并得到这个错误:
C:\Users\Administrador>curl -i -X POST -H 'Content-Type:application/x-www-form-urlencoded' -H "Authorization:Basic YWRtaW46TGF0aW51czAx" https://192.168.0.238:
9443/services/TOTPAdminService/resetTOTP -k -d 'username=admin'
HTTP/1.1 500 Internal Server Error
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Frame-Options: DENY
Set-Cookie: JSESSIONID=6BC764F5BB95F534DA74528AF92572BA; Path=/; Secure; HttpOnl
y
Content-Type: application/xml;charset=UTF-8
Transfer-Encoding: chunked
Vary: Accept-Encoding
Date: Wed, 25 Apr 2018 21:39:56 GMT
Connection: close
Server: WSO2 Carbon Server
<faultstring>Exception occurred while trying to invoke service method resetTOTP<
/faultstring>
TOTP 配置正确,因为我可以手动启用和禁用它。请帮我!