Rally Software

 View Only
  • 1.  In rally rest api security token generated through https://rally1.rallydev.com/slm/webservice/v2.0/security/authorize is valid for how much time? Will it expire automatically?

    Posted Apr 21, 2017 07:29 AM

    In rally rest api security token generated through https://rally1.rallydev.com/slm/webservice/v2.0/security/authorize is valid for how much time? Will it expire automatically? We are not planning to use api key, we need to use only security token. 

     

    As for every PUT/POST request we need a security key, can i get the security token once and store it for all later PUT/POST requests.

     

    Please share your thought on this. Thanks



  • 2.  Re: In rally rest api security token generated through https://rally1.rallydev.com/slm/webservice/v2.0/security/authorize is valid for how much time? Will it expire automatically?

    Posted Apr 21, 2017 11:11 AM

    Hi Anil, i am trying to figure out connecting to rally through rally api similiar to you, but i have not been much successful so far. I am one step behind you. Every time, i try to get my rally api key through https:/rally1.rallydev.com/login, i was not successful. Today, after seeing your comment, i registered on ca community portal and i may have to wait 24-48 hours before i ll be able to login. But, is it possible for you to let me know, how you are able to generate rally api key?

     

    Any help in this regard would be great help!!!



  • 3.  Re: In rally rest api security token generated through https://rally1.rallydev.com/slm/webservice/v2.0/security/authorize is valid for how much time? Will it expire automatically?

    Posted Apr 24, 2017 01:12 AM

    I generated API key from https://rally1.rallydev.com/login/accounts/index.html#/keys  and API keys tab.



  • 4.  Re: In rally rest api security token generated through https://rally1.rallydev.com/slm/webservice/v2.0/security/authorize is valid for how much time? Will it expire automatically?

    Posted Apr 21, 2017 03:52 PM

    Hi anil.vanaparthi,

    A Security Token expires with an HTTP session. While this may not be a problem in a browser that keeps the session, if you are using it outside of the browser, e.g. in the terminal with a CURL command, then you need to manually maintain a session cookie.

     

    If you are doing this in external code, you could trap errors checking for a HTTP 401. If you get that error, re-request a new token and proceed with the previous request.

     

    Let me know if that helps,

    Sean Davis



  • 5.  Re: In rally rest api security token generated through https://rally1.rallydev.com/slm/webservice/v2.0/security/authorize is valid for how much time? Will it expire automatically?

    Posted Apr 24, 2017 03:25 AM

    Thanks for the reply Sean.

     

    I always get "Not authorized to perform action: Invalid key" message. I am doing the rest call from a java application, where each rest call is done on a new http client request. Is this because of new http request always, the security token is getting invalid always?



  • 6.  Re: In rally rest api security token generated through https://rally1.rallydev.com/slm/webservice/v2.0/security/authorize is valid for how much time? Will it expire automatically?

    Posted Apr 24, 2017 04:13 PM

    Hi Anil,

    Are you also sending the basic authentication credentials with the security token? If not, please give that a try.

     

    Thanks,

    Sean Davis



  • 7.  Re: In rally rest api security token generated through https://rally1.rallydev.com/slm/webservice/v2.0/security/authorize is valid for how much time? Will it expire automatically?

    Posted Apr 25, 2017 05:27 AM

    I am sending basic authentication credentials as well, but it is still failing. Thanks.



  • 8.  Re: In rally rest api security token generated through https://rally1.rallydev.com/slm/webservice/v2.0/security/authorize is valid for how much time? Will it expire automatically?

    Posted Apr 25, 2017 11:36 AM

    Can you please post your full request (Mask your security token and/or password)? I need to see how you are using the token. Here is a link to the webservices documentation (Must be logged into CA Agile Central). See "Using Security Token" Under the Authorization section. 

     

    Thanks,

    Sean Davis



  • 9.  RE: Re: In rally rest api security token generated through https://rally1.rallydev.com/slm/webservice/v2.0/security/authorize is valid for how much time? Will it expire automatically?

    Posted Feb 01, 2022 12:24 PM
    Years, later, also having problems with getting an authorization token, see: