Graphics

 View Only
  • 1.  Xpression Datalinq and Authentication Bearer tokens

    Posted 04-26-2022 18:03
    Hey all, I'm attempting to pull JSON data from an HTTP API source that requires token authentication.  The API docs state that this can be done using an Authentication: Bearer token header, but I'm only receiving "User not signed in" errors in the return JSON object.  How would I format the custom header in the Xpression Datalinq Server configuration?  The API docs give this example:
    Authentication: Bearer <token>​

    And that's how I have it formatted in the Value section of the Custom Header section, but no luck.

    I've confirmed that I can fully access the API data with this curl command on the Xpression machine via command line: 

    curl -H "Authorization: Bearer <token here>" "website here"

    Any thoughts on what I might be getting wrong with the Custom Header?

    Thanks



    ------------------------------
    Sean Henry
    ------------------------------


  • 2.  RE: Xpression Datalinq and Authentication Bearer tokens

    Posted 04-27-2022 02:15

    Hey Sean,


    Two common issues to watch out for:

    1. Authorization vs Authentication - the former is standard for a server side oauth, the latter is used sparingly by some servers for some reason, beats me.

    2.I've had to remove the colon from the end of Authorization to get it to work before but it seems to depends on the end server and what it's expecting.

    Hope these help!!



    ------------------------------
    Nick Huntley
    ------------------------------



  • 3.  RE: Xpression Datalinq and Authentication Bearer tokens

    Posted 04-27-2022 11:55
    Thanks Nick, I've tried all permutations of Authorization and Authentication and colons and still no luck.  I guess my next question would be do I need anything else besides "Authorization: Bearer <token>" in the header value, because currently that's the only thing I'm doing to attempt to get into this API, other than the URL.


    ------------------------------
    Sean Henry
    ------------------------------



  • 4.  RE: Xpression Datalinq and Authentication Bearer tokens

    Posted 04-28-2022 11:02
    If I'm reading that right, you have the entire "Authentication: Bearer <token>" as a value when it might need to be separated as a key/value. I'm a novice at this kind of stuff for sure, but I have API with similar auth I do in Postman that is set up similar to this.

    So, as your key, your would put "Authentication" and as your value "Bearer <token>"

    Sorry if that is how you have it and I'm misunderstanding.

    ------------------------------
    Mike DeMarco
    Video Production Engineer
    Las Vegas United States
    ------------------------------



  • 5.  RE: Xpression Datalinq and Authentication Bearer tokens

    Posted 04-28-2022 12:57
    That's it Mike, thank you!  I had tried some permutation of that but I must have had it just barely wrong. Everything is functionally correctly now.

    ------------------------------
    Sean Henry
    ------------------------------



  • 6.  RE: Xpression Datalinq and Authentication Bearer tokens

    Posted 04-28-2022 13:30
    Glad I could help!

    ------------------------------
    Mike DeMarco
    Video Production Engineer
    Las Vegas United States
    ------------------------------