SQL Server Connected system OAuth2.0 Test failure

Certified Associate Developer

Hi, 

While trying to connect to SQL Server connected system using OAuth 2.0, the test connection is failing. 
i am trying to connect via service principal. The token generation is successful (tested separately) but in the connected system for SQL Server, it is not working at all. 
Please advise,

Refer Attached screenshots

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Associate Developer
    in reply to Shubham Aware

    Hi,
    There was an IP whitelist issue on the firewall and we got it fixed to ensure the VPN tunnel connectivity. 
    however, a new error is being faced saying invalid credentials. Internally, we are able to use the same service principal successfully. not sure what could be done next. 
    The logs shows the below error: 

    2025-09-29 18:44:13,781 [ConnectionTimeoutBasicDataSource-0] INFO  com.appiancorp.connectedsystems.http.oauth.HttpOAuthTokenRetriever - Error while retrieving token: unauthorized attempting to pass Authentication in body
    2025-09-29 18:44:13,950 [ConnectionTimeoutBasicDataSource-0] INFO  com.appiancorp.connectedsystems.http.oauth.HttpOAuthTokenRetriever - Error while retrieving token using auth in body: unauthorized


Children
No Data