I have the following CSOM code:-
using (ClientContext context = new PnP.Framework.AuthenticationManager().GetACSAppOnlyContext(RisksiteUrl, clientId, clientSecret, AzureEnvironment.Production))
it was working well for around 1 year, but starting from yesterday the above code will raise this exception:-
Unhandled Exception: Microsoft.IdentityModel.SecurityTokenService.RequestFailedException: Token request failed. ---> System.Net.WebException: The remote server
returned an error: (401) Unauthorized.
Any advice?
Thanks