Manage the App Secret expiry without having any downtime

john john 946 Reputation points
2021-02-19T15:24:06.513+00:00

I have have been working with remote event receivers for long time but i have never thought that they actually get expired, so based on this link @ https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/replace-an-expiring-client-secret-in-a-sharepoint-add-in?redirectedfrom=MSDN we can renew the app secret after been expired.. but my question is that the steps inside the link assume that the App secret is already expired and we can renew the App secret and then update the web.config with the new App Secret.. but my question is how we can prevent the App from been expired? and renew it before expiry .. as seems we can not use the new App Secret unless the old one already expired.. any advice on this please? Thanks

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,025 questions
0 comments No comments
{count} votes

1 answer

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

    According to my test, it is okay to generate a new secret when the old secret has not expired. The document may mean that this is not recommended.


    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