Forum Discussion

Hagar_Z's avatar
Hagar_Z
Copper Contributor
Aug 29, 2023

Invalid S2S auth token error for API requests

Hi,
We are using Microsoft Graph API periodically to fetch information like directory audits and incidents.
Every hour or so the request returns the following error with status code 403:

Invalid S2S auth token: 
miseHost.HandleAsync did not succeed or AuthenticationTicket is null: 
MISE12034: 
AuthenticationTicketProvider Name:AuthenticationTicketProvider, 
GetVersion:1.8.0.0. ,    
at Microsoft.Identity.ServiceEssentials.MiseHost`1.<AuthenticateRequestAsync>d__39.MoveNext()\r\n--- 
End of stack trace from previous location where exception was thrown ---\r\n   
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   
at Microsoft.Identity.ServiceEssentials.MiseHost`1.<HandleAsync>d__38.MoveNext()

 
When we retry the request again, it returns without an issue.

 

Appreciate your support,
Hagar

Resources