Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 2.67 KB

Readme.md

File metadata and controls

25 lines (21 loc) · 2.67 KB

How to get All Data Gateways?

To get all data gateways, you need to prepare this information:

  • Azure Tenant Id
  • Application Client Id
  • Application Client Secret

Client & Tenant IDs Client Secret

Do I need some particular setting in Azure App?

Shortly? YES! App setting you need to go to Authentication -> Platform configuration -> Add Platform -> Web - And set Redirect URIs to http://localhost:8080

Let's start step by step.

  1. By Create URL to user Login function, you will receive a URL that you will need to put into your browser.
  2. After login / If you already were logged in browser URL, you will find a new one that will start with localhost:8080. Returned URL to localhost
  3. You can extract the needed code from this returned URL by Extract code function.
  4. Now you need to get Refresh Token. To get this type of token, you will need an app to call APIs and handle redirections. I recommend Postman App.
  5. In Postman you need to import this cURL. And import change all "<>" parameters for requested values. (Dont forget to change the one in URL also!)
  6. In JSON response, you will find Refresh Token that you need to receive your UserToken.
  7. Thanks to UserToken function, you need to generate Bearer Token.
  8. Received token you can use to call Gateways function and finally receive outputs!

What to be aware of?

  • Code received by Extract code can be called only once. If your call with this code will return an ERROR, you need to generate code again from scratch.