2017-04-17 73 views

回答

0

它应该工作。确保你已经像这样正确地提供了Authorization标题。

curl -v -k -H "Authorization:Bearer b3fb1924-25e8-3ef9-9e55-6134bd778124" https://localhost:9443/wso2/scim/Users 
+0

我以admin用户身份获得令牌。 curl -v -k -H“Authorization:Bearer 2a16d0e0-3d7e-3649-aea9-4af43c6aa202”https://192.168.56.106:9443/wso2/scim/Users > GET/wso2/scim/Users HTTP/1.1 >用户代理:卷曲/ 7.29.0 >主机:192.168.56.106:9443 >接受:*/* >授权:承载2a16d0e0-3d7e-3649-aea9-4af43c6aa202 >

+0

发布你在'wso2caron.log'中看到的错误日志 – Bee

+0

你可以试着检查你的令牌,以确保它是由管理员用户获得的? curl -k -u admin:admin -H'Content-Type:application/x-www-form-urlencoded'--data'token = 'https:// localhost:9443/oauth2/introspect – farasath