2017-04-17 46 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