2014-07-02 48 views
0

我測試了API上https://docs.wso2.com/display/AM170/Store+APIs註銷似乎並沒有失效會議

如記錄我可以調用登錄,應用程序列表和註銷功能。

登錄:

$ curl -i -X POST -c cookies http://localhost:9763/store/site/blocks/user/login/ajax/login.jag -d 'action=login&username=admin&password=admin' 
HTTP/1.1 200 OK 
Set-Cookie: JSESSIONID=83BD02EF499EF55E566EC26B58DDA756; Path=/store/; HttpOnly 
... 

列表應用:

$ curl -i -b cookies http://localhost:9763/store/site/blocks/application/application-list/ajax/application-list.jag?action=getApplications 
HTTP/1.1 200 OK 
Content-Type: application/json;charset=UTF-8 
...  
{"error" : false, "applications" : [{"name" : "DefaultApplication", "tier" : "Unlimited", "id" : 1, "callbackUrl" : null, "status" : "APPROVED", "description" : null}]} 

註銷:

$ curl -i -b cookies 'http://localhost:9763/publisher/site/blocks/user/login/ajax/login.jag?action=logout' 
HTTP/1.1 200 OK 
Set-Cookie: JSESSIONID=224B416DEE99F9769BB0BACD85E337E6; Path=/publisher/; HttpOnly 
Content-Type: application/json;charset=UTF-8 
... 
{"error" : false} 

列表應用:

$ curl -i -b cookies http://localhost:9763/store/site/blocks/application/application-list/ajax/application-list.jag?action=getApplications 
HTTP/1.1 200 OK 
Content-Type: application/json;charset=UTF-8 
...  
{"error" : false, "applications" : [{"name" : "DefaultApplication", "tier" : "Unlimited", "id" : 1, "callbackUrl" : null, "status" : "APPROVED", "description" : null}]} 
但是調用註銷我仍然可以列出我的應用程序後,

回答

0

正確的查詢,如下

curl -i -b cookies 'http://localhost:9763/store/site/blocks/user/login/ajax/login.jag?action=logout' 
+0

感謝@Nadeesha。按照我的回答,這就是我所做的。我真的在這裏記錄它,讓其他人看到如何解決這個問題,並希望WSO2可以修復文檔錯誤:) –

+0

是的,我會在這個 – Nadeesha

+0

上提出JIRA謝謝@Nadeesha –