Assure DQ

 View Only
  • 1.  REST API layout

    Posted 09-16-2020 12:30

    Does REST API external service layout support tokens?   

    We have an API that we wanted to call coming from Assure, and it uses tokens.  Does Infogix Assure support this way of reaching to an API?  



  • 2.  RE: REST API layout

    Employee
    Posted 09-16-2020 14:06

    Yes, you can use tokens with Basic authentication. You just need to append "/token" to the end of the username and use the token as the password. I was able to make a call from REST API layout within Assure using the token of my test email account. The same style of token-based Basic authentication works externally from Assure too, such as via curl. 

    Here's a snippet of the relevant REST API layout fields:



  • 3.  RE: REST API layout

    Posted 09-16-2020 14:26

    Does this work if the token is not constant and have expiries?    wondering if there are other ways to handle tokens.  because we have a uid and password to use.  plus the tokens which expires after an hour. so the expectation is, that the REST API job that will come from Assure will finish before the expiration.