我需要針對IBM WebSphere服務器實現OAuth。爲此目的,我根據http://www.ibm.com/developerworks/websphere/techjournal/1305_odonnell2/1305_odonnell2.htmlWebSphere Docker OAuth
建起了碼頭工人的環境https://github.com/hhoechtl/websphere-oauth但是,如果我試圖得到一個令牌
curl -X POST -H "Accept-Charset: UTF-8" -H "Content-Type: application/x-www-form-urlencoded" -d 'grant_type=password&client_id=LibertyRocks&client_secret=AndMakesConfigurationEasy&username=admin&password=admin' "https://192.168.99.100:9443/oauth2/endpoint/DemoProvider/token"
我得到的錯誤
{
"error_description": "CWWKS1406E: The token request had an invalid client credential. The request URI was /oauth2/endpoint/DemoProvider/token.",
"error": "invalid_client"
}
但根據我server.xml中應該是正確的。我錯過了什麼?