How to fix Provider Hosted App Error – Invalid issuer or signature?

[Fixed]: Provider Hosted App Error – Invalid issuer or signature

No comments

 12,126 total views,  3 views today

Windows Was Unable to Complete the ...
Windows Was Unable to Complete the Format (Fixed)

Invalid issuer or signature – sometimes, we get the error “[SecurityTokenException: Invalid issuer or signature.]” in SharePoint online provider hosted app. In this troubleshooting technique, we will see how to fix the “SecurityTokenException: Invalid issuer or signature.” error in the SharePoint Online office 365.

Scenario: Invalid issuer or signature

Let’s say we have a provider-hosted app running in Share Point Online which connects to Azure WebApp Service. The app might work fine for the time being and later on, it might start to fail after some time with the following error.

[SecurityTokenException: Invalid issuer or signature.]

Possible Reason for being the above error – Invalid issuer or signature

If you deploy the app from the development environment to the production but forget to correct the Client Id and Client Secret to the values that had previously been generated for production. This means that when the user is redirected to the production azure website the client details in SharePoint Online, in this case from the development environment, will not match with the already configured keys in the associated Azure website and the end result might be the above error.

Solution: Invalid issuer or signature

Go to the visual studio solution and correct the Client Id/Secret in the web.config file and the publishing profile and finally deploy a new version of the app component – the issue should be resolved.

See Also: Invalid issuer or signature

You may also like the below SharePoint troubleshooting articles:

PDF Download Image

Download SharePoint Online & Office 365 Administration eBook

Buy the premium version of SharePoint Online & Office 365 administration eBook from here:



Buy SharePoint Online & Office 365 Administration eBook


 

Get the free demo PDF eBook from here:

FREE DOWNLOAD

Send download link to:

Subscribe to get exclusive content and recommendations every month. You can unsubscribe anytime.

 

About Post Author

Do you have a better solution or question on this topic? Please leave a comment