Problem with Client Secrets in App Registrations

Mateusz Domański 60 Reputation points
2024-11-27T09:13:42.5866667+00:00

Hello!

In our Entra ID we have App Registration set up for SSO to one of our services

For 2 days now we are not able to log in using SSO to this service, we have verified configuration and both Azure and this service configuration is OK and nothing has changed

Error we are receiving in Microsoft Entra ID audit logs is: "The key container with id 'client_secret' in tenant 'tenantname.onmicrosoft.com' does not has a valid key. Reason: The key in the key container expired."

The key is valid and was created 2 months ago as the previous one was about to expire and was also changed in the service to which SSO now does not work (as mentioned it is not working for 2 days not 2 months)

As company I work for also provides services for other buisnesses we had a chance to see error that sounds similar in different company. We do not have access to Azure logs there to confirm but the client described it like below:

"When running a pipeline in Azure DevOps, I get an authentication error with a message indicating that the secret key (Client Secret) for the application used to authenticate to Azure (Service Principal) has expired"

I have checked and Azure Health Status does not show any errors

Does anyone recognzie this issue and have an idea what to check or how to solve it?

Best regards,
Mateusz

Microsoft Security Microsoft Entra Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Raja Pothuraju 23,465 Reputation points Microsoft External Staff Moderator
    2024-11-27T10:15:19.9066667+00:00

    Hello @Mateusz Domański,

    Thank you for posting your query on Microsoft Q&A.

    Based on the described scenario and error message, the issue appears to be caused by an expired client secret ID. Please follow the steps below to resolve the issue:

    1. Sign in to the Azure portal and navigate to the Microsoft Entra service.
    2. Select the application name under the App Registrations. Screenshot of an application name.
    3. Select Certificates & Secrets User's image Check the client secret value currently being used in your pipeline. If the existing client secret has expired, create a new client secret by clicking on "New client secret". The newly generated secret key value will be displayed under the Key column.
    4. Copy the new client secret value and update this value in your configuration or pipeline to resolve the authentication issue.

    I hope this information is helpful. Please feel free to reach out if you have any further questions.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Thanks,
    Raja Pothuraju.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.