Share via

Client Secret

Pathepur, Venkateshwar 0 Reputation points
2024-09-02T10:40:54.8166667+00:00

Hi
I'd like to know if the client secret expires by tomorrow i.e 03-09-2024 , will the app work for tomorrow?

Microsoft Security | Microsoft Entra | Microsoft Entra ID

2 answers

Sort by: Most helpful
  1. Vasil Michev 127K Reputation points MVP Volunteer Moderator
    2024-09-02T15:22:58.05+00:00

    Depends. If this is the only secret configured, the app will continue working until any valid tokens expire. After that happens, any operations attempted by the app will fail, so you need to ensure that you have at least one valid authentication method available.

    If you have multiple secrets/auth methods configured, the app will continue working just fine.

    Was this answer helpful?

    0 comments No comments

  2. Andreas Baumgarten 132.1K Reputation points MVP Volunteer Moderator
    2024-09-02T10:48:49.6+00:00

    Hi @Pathepur, Venkateshwar ,

    you can check the date/time of expiration with the following script (haven't tested this by myself):

    https://github.com/demiliani/PowershellCloudScripts/blob/master/AzureADCheckSecretsToExpire.ps1

    I don't now to which timezone the EndDate time is related to. Could be UTC or your individual timezone.


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten

    Was this answer helpful?

    0 comments No comments

Your answer

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