Forum Discussion

odumna's avatar
odumna
Icon for Helper I rankHelper I
4 years ago

Create new gateway with OAuth2 authorization

Hello

 

Could you please help me to understand the reason of my issue and what I shoud to check and configure ...


I tried to create new gateway with OAuth2 authorization to SQL Server database.

However I got error:
Microsoft SQL: A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)

ActivityId: d92248fd-1f67-4b58-97e1-16c0a7f81063

RequestId: 2a599971-cf07-4c36-8948-d1aff0fa714d

URI кластера: https://api.powerbi.com

Код состояния: 400

Время: Wed May 18 2022 18:20:01 GMT+0300 (Восточная Европа, летнее время)

My account has access to sql sever database amd I am able to connect using SQL managment studio as well.

3 Replies

  • Hey odumna ,

     

    I assume your SQL Server is running on-premises?
    What version of SQL Server are you using?
    How do you authenticate against the SQL Server from Power BI Desktop?

    Do you want to pass the current Power BI user to the SQL Server or do you want to use a "fixed user" that is used by the gateway connection?

    This article describes a little how you can configure a gateway with oAuth authentication but this works only with SQL Azure.

     

    Regards,

    Tom