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
My guess, The issue is the SQL Server database user for the service principal (Client Id)is not created or lacks permissions.Try below links for referencehttps://learn.microsoft.com/en-us/azure/azure-sql/database/authentication-aad-service-principal?view=azuresqlhttps://learn.microsoft.com/en-us/sql/connect/jdbc/connecting-using-azure-active-directory-authentication?view=sql-server-ver17https://docs.appian.com/suite/help/25.3/setting_up_an_oauth_connected_system.htmlhttps://docs.appian.com/suite/help/25.3/Configuring_Relational_Databases.html#sql-server
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