Data360 Analyze

 View Only
  • 1.  Passing Long Bearer Tokens

    Posted 02-17-2023 10:37

    I'm trying to write a pipeline that mines Azure ADF metadata.

    I'm successfully getting a really long bearer token from Azure to connect to ADF

    But, when I pass the bearer token as an in1 field parameter into an HTTP-GET header to mine the metadata at the appropriate place it is giving me an error:

    401 - {"error":{"code":"InvalidAuthenticationToken","message":"The access token is invalid."}}

    But when I paste the bearer token into the header at the same appropriate location it works fine.

    Is there a limit to the length a string can be passed between nodes???



    ------------------------------
    Charles Franklin
    DTE Energy
    Detroit MI
    ------------------------------


  • 2.  RE: Passing Long Bearer Tokens

    Posted 02-20-2023 09:47

    I figured it out...  Before I was creating the Header as "Authentication: Bearer 'BEARER_Token'" (minus the double quotes) and set "Header" and that didn't work.  I guess Analyze can't handle the combination of embedded fields in a header.

    But if I create the entire header string in a prior Transform node, then in the HTTP's header I just have 'OAUTH_HEADER' and set "Header as field" it works.



    ------------------------------
    Charles Franklin
    DTE Energy
    Detroit MI
    ------------------------------