Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

ADF – Generating an Rest API Bearer Token

Anitha Eswaran Profile Picture Anitha Eswaran 312

I`ve already given the post on generating a bearer token usins Postman.

As there are various requirements using cloud concepts , in this blog I will show you on creating the token using ADF.

Create a new Pipeline . Let my pipeline name be ‘AuthToken Demo’ . It is always a best practice to name the steps so it serves as a self-documentation.

Choose Web activity and enter a proper name.

When using postman for generating token, below details are needed

  • TenantId
  • ClientId
  • Secret
  • resource URL of the environment

We follow the same process here , but in a different way.

In the ‘URL’ column, enter the tenant details.

Method is Post

Body includes rest of the other 3 fields

grant_type=client_credentials&client_id=xxxxxxx&client_secret=xxxxxx&resource=https://fourl.operations.dynamics.com

Set up does not end here. Header columns should have the value for ‘content-type’

Content-type             application/x-www-form-urlencoded

Now the pipeline is good to go. Testing results gives you the token


This was originally posted here.

Comments

*This post is locked for comments