ADF - REST API Bearer token

Raghunandan Venkateswaran 6 Reputation points
2021-09-22T02:56:29.117+00:00

We are intending to use ADF to extract data from a REST API data source (onelogin) and populate the data to a file in the azure blob. the REST API for user list (source) requires a bearer token. using a pipeline we are successfully generate a token (using POST method) and store the output from onelogin token api to a to a file. Can this token read from the file and passed as a parameter on to the actual GET method for another API (users for ex)?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,751 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Saurabh Sharma 23,821 Reputation points Microsoft Employee
    2021-09-22T22:24:51.983+00:00

    Hi @Raghunandan Venkateswaran ,

    Thanks for using Microsoft Q&A !!
    Is there any specific reason you are trying to store the token to a file.
    You can instead get the token using one Web Activity and then use token from the activity output to another Web Activity or use Copy Data with Http linked service for your GET method.

    I do not have any Onelogin API to share you as example but you see below ADF where I have used Web Activity with Copy Data (copy data from rest API to a file on storage)-
    134483-bearertokenwithcopydata.gif
    Please let me know if you have any questions.

    Thanks
    Saurabh


  2. kamlesh parmar 1 Reputation point
    2022-07-14T18:40:16.22+00:00

    @Saurabh Sharma Thank you for the help but how to connect take the output of web activity to copy activity and what if we have multiple api to call with that same token acess.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.