Get Access Token for Linked Service (REST) with OAuth2ClientCredential Authentication Type

Maryna Paluyanava 211 Reputation points
2022-11-21T20:33:09.057+00:00

Hello,

Could you please clarify me the following.

If I implement linked service (REST) with OAuth2ClientCredential Authentication Type, do I need to update access token using refresh token?

Before I implemented the following steps: 1- got access token from AKV, 2- if token expired, I updated it with refresh token, 3 - used Copy activity to load data (with Additional headers where I specified updated access token).

Now I noticed that if linked service (REST) is implemented with OAuth2ClientCredential Authentication Type I do not need to store access token in AKV, I do not need to refresh token. I just use Copy Activity (without any Additional headers) and it seems like Linked service takes care of renewing the token.
Is that correct?

Thanks

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,005 questions
0 comments No comments
{count} votes

Accepted answer
  1. ShaikMaheer-MSFT 38,476 Reputation points Microsoft Employee
    2022-11-23T10:22:47.02+00:00

    Hi @Maryna Paluyanava ,

    Thank you for posting query in Microsoft Q&A Platform.

    Yes. REST connector linked service has OAuth2ClinetCredential option too. You can start using that. Click here to know more about it.

    Kindly go head and start using it.

    Hope this helps. Please let me know if any further queries.

    -----------

    Please consider hitting Accept Answer button. Accepted answers help community as well.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.