Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Hello @Ciaran Carey,
I hope you're doing well.
Based on my research, the error "AADSTS501209: JWT signature is invalid (key expired) " usually indicates that the JWT token is signed using an expired key (certificate or client secret) configured on the Microsoft Entra ID (Azure AD) app registration.
Once the signing key reaches its End date, Microsoft Entra ID will no longer accept tokens signed with it, resulting in the JWT signature validation failure.
To troubleshoot and resolve, you can try these steps:
1. Find your IT admin/Microsoft 365 admin to assist with this kind of issue.
If you haven’t yet reached out, here’s a helpful guide to locate your Microsoft 365 administrator: How do I find my Microsoft 365 admin? - Microsoft Support
2.Check credentials in the Azure Portal
- Sign in to Microsoft Entra ID at https://entra.microsoft.com using an administrator account.
- Navigate to Microsoft Entra ID > App registrations > All applications.
- Paste the Application (client) ID into the search box, or locate it directly in the Application (client) ID column.
- Click on the app's Display name.
- Navigate to Certificates & secrets.
- Check and verify whether any credential has an End date in the past or matching the date shown in the error:
- Certificates under Certificates
- Client secrets under Client secrets
3. Rotate the expired credential (required)
If using a certificate
- Upload a new certificate
- Ensure the new certificate has a valid future expiration date
- Update the application/service to use the new certificate
If using a client secret
- Create a new client secret
- Copy the secret value immediately
- Update the application configuration with the new secret
The expired credential cannot be reused once its end date has passed.
4. (Optional) Verify via Microsoft Graph
You can also inspect configured credentials using Microsoft Graph using the instructions:
- Get application - Microsoft Graph v1.0 | Microsoft Learn
- Microsoft Graph national cloud deployments - Microsoft Graph | Microsoft Learn
Review:
- keyCredentials > certificates
- passwordCredentials > client secrets
- Check the endDateTime values for expiration.
Note: Ensure you are using the correct Graph endpoint if the tenant is in a national cloud (GCC, Germany, China, etc.).
Once the credential is renewed and the application updated, authentication should succeed.
Please let me know if the issue persists. I'll be happy to assist further.
Please understand that our forum is a public platform, and we will modify your question to cover your personal information including your Request Id, Correlation Id in the description. Your personal data will be stored in our private messages and will automatically be deleted after 30 days.
Please notice to hide these personal or organization information next time you post error or some information to protect personal data.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.