Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

OAuth2 Authentication in PowerBI service

I'm trying to Authenticate API as part of Gateway cluster.

 

When I select "OAuth2"as authentication method, I don't find a way to pass "Access Token" in a way not even "Secret ID" and "Secret Token".

 

Am I missing something here. Any pointer or input is appreciated

 

error = "invalid_authorization_header, error_description="Invalid Authentication Data"

4 Replies

  • JirkaZ's avatar
    JirkaZ
    Solution Specialist

    If you want to use an API in a proper way (including the OAuth flow etc.) you have to build a custom connector.

    • Anonymous's avatar
      Anonymous
      Not applicable

      It's working fine in PowerBI Desktop.

      We are facing issue to add "Web API" as a data source under Gateway. When we select "OAuth2" as Authentication Method, we don't find options to pass Authorization Details.

      We have requirement to enable it in Service, as we have to refresh frequenctly and need to create Dataflow

      • JirkaZ's avatar
        JirkaZ
        Solution Specialist

        I'll just repeat myself - if you want to use an API requiring OAuth flow to authorize, you have to build a custom connector.

  • v-chenwuz-msft's avatar
    v-chenwuz-msft
    Community Support

    Hi Anonymous ,

     

    Maybe you can try edit credentails here.

    Best Regards

    Community Support Team _ chenwu zhu

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.