URGENT PLEASE. Remote event Reciever app hosted inside Azure is showing this error “[SecurityTokenSignatureKeyNotFoundException: IDX10501: Signature validation failed”

john john 1,021 Reputation points
2021-02-19T10:28:32.067+00:00

I have a remote event receiver deployed inside Azure, and it is working well for 2 years. but yesterday i noted that the RER is not longer working !! now i went to site content >> click on the App , where i got this error instead of getting the web title:-

70037-jwt.png

here is the code for the default.aspx page:-

protected void Page_Load(object sender, EventArgs e)  
        {  
            // The following code gets the client context and Title property by using TokenHelper.  
            // To access other properties, the app may need to request permissions on the host web.  
            var spContext = SharePointContextProvider.Current.GetSharePointContext(Context);  
  
            using (var clientContext = spContext.CreateUserClientContextForSPHost())  
            {  
                clientContext.Load(clientContext.Web, web => web.Title);  
                clientContext.ExecuteQuery();  
                Response.Write(clientContext.Web.Title);  
            }  
        }  
Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Amos Wu-MSFT 4,051 Reputation points
    2021-02-22T09:07:39.67+00:00

    Please check if the client secret has expired, if yes, please update the client secret according to this document:https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/replace-an-expiring-client-secret-in-a-sharepoint-add-in


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.