Forum Discussion

CBCKV's avatar
CBCKV
Frequent Visitor
8 months ago
Solved

OAuth 2.o grant-type: Authorization Code

I am trying to create a pipeline that interacts with an endpoint that uses OAuth 2.0; however, it requires a grant_type=authorization_code, which I can only assume is granted once the admin user logs in and retrieves it. My question is how have people worked around this in Azure Data Factory, Im reasonably new to ADF and have heard that creating a function app might be able to do this, but im struggling to understand how. I am using the new fabric version of ADF.

Any feedback or help is much appreciated!

  • Hi CBCKV,

    Fabric Data Factory does not support Authorization Code OAuth flow because it requires interactive login. The recommended approach is to perform the initial login once, store the refresh token securely (Key Vault), and use grant_type=refresh_token within your pipeline

     

    Thanks,

    Prashanth

3 Replies

  • v-prasare's avatar
    v-prasare
    Community Support

    Hi CBCKV,

    Fabric Data Factory does not support Authorization Code OAuth flow because it requires interactive login. The recommended approach is to perform the initial login once, store the refresh token securely (Key Vault), and use grant_type=refresh_token within your pipeline

     

    Thanks,

    Prashanth

  • v-prasare's avatar
    v-prasare
    Community Support

    Hi CBCKV,

    We would like to confirm if our community members answer resolves your query or if you need further help. If you still have any questions or need more support, please feel free to let us know. We are happy to help you.

     

     

    Thank you for your patience and look forward to hearing from you.
    Best Regards,
    Prashanth Are
    MS Fabric community support

  • v-prasare's avatar
    v-prasare
    Community Support

    Hi CBCKV,

    We would like to confirm if our community members answer resolves your query or if you need further help. If you still have any questions or need more support, please feel free to let us know. We are happy to help you.

     

     

    Thank you for your patience and look forward to hearing from you.
    Best Regards,
    Prashanth Are
    MS Fabric community support