I have got 'Login Failed' Error when I try to connect to JIRA 5.1.8 using REST API.
$ curl -X POST -H "Content-Type: application/json" -d '{"username" : "APP_USERNAME"
, "password" : "APP_PASSWORD"}' https://jira.company.com/rest/auth/1/session
{"errorMessages":["Login failed"],"errors":{}}
JIRA URL (https://jira.company.com) which has SITEMINDER Integration and /rest is the unprotected URL in siteminder, I should be able to access JIRA directly using curl command.
My username and password are correct and can able to login successfully through JIRA Interface.
I tried this command in JIRA Development Instance which does not have siteminder integration, I got the response.
$ curl -X POST -H "Content-Type: application/json" -d '{"username" : "APP_USERNAME"
, "password" : "APP_PASSWORD"}' http://localhost:8080/rest/auth/1/session
{"session":{"name":"JSESSIONID","value":"6B18FEEA03A8A73F627BD113432F7932"},"log
inInfo":{"loginCount":100,"previousLoginTime":"2013-02-19T08:31:24.221-0600"}}
Why it is not working in the environment which has siteminder integration ? Do I need to provide any other valid information to the curl command ?