Access token connection fails after some time with Login failed NT AUTHORITY\ANONYMOUS LOGON error
问题 I have a Spring web application on an Azure App service that is connecting to an Azure SQL DB using the Microsoft JDBC driver authenticating using an access token. It initially works find but after some time I start to get SQLServerException: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' I'm following the steps outlined in the MS docs. AuthenticationContext context = new AuthenticationContext(mySTSUrl, false, Executors.newFixedThreadPool(1)); ClientCredential cred = new