locked
Expiring Client Secret ID in SharePoint Provider Hosted Add-in RRS feed

  • Question

  • Hi,

    Currently I am facing issue of expiring Client Secret ID in SharePoint Provider Hosted Add-in after an year, is there any way using which we could create a non-expiring Client Secret ID. In the below mentioned below they have given approach to create a new client secret that is valid for three years. Then how other SharePoint store app vendors are providing the provider hosted apps. 

    https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/replace-an-expiring-client-secret-in-a-sharepoint-add-in 

    Could any one please help, Thanks in advance.

    Shakir

    Wednesday, April 11, 2018 4:03 PM

Answers

  • vendors should provide instructions how to renew expired client secret. Currently there is no other way. Max lifetime is 3 years.

    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - https://github.com/sadomovalex/camlex

    Thursday, April 12, 2018 3:10 PM
  • Hi Shakir,

    The max expiration period is three year, Vendors should renew the Client Secret if expired.

    Thanks

    Best Regards


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Thursday, April 12, 2018 3:14 PM

All replies

  • Hi Shakir,

    The default EndDate value in New-MsolServicePrincipalCredential  Command is One Year if not specified as this is a optional value:

    And there is no option to set the Client Secret Expiration to false so that it will never expire.

    To fix the Client Secret expire issue, it is necessary to create a new Client Secret and replace the old one as the official article guided.

    More information:

    New-MsolServicePrincipalCredential

    Thanks

    Best Regards


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Thursday, April 12, 2018 3:36 AM
  • Hi Jerry,

    Thanks for your reply, even if we create a new Client Secret as mentioned in the official article it has mentioned that it will be valid only for 3 years. Then how other SharePoint store app vendors are providing the provider hosted apps?

    Thanks

    Shakir

    Thursday, April 12, 2018 2:38 PM
  • vendors should provide instructions how to renew expired client secret. Currently there is no other way. Max lifetime is 3 years.

    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - https://github.com/sadomovalex/camlex

    Thursday, April 12, 2018 3:10 PM
  • Hi Shakir,

    The max expiration period is three year, Vendors should renew the Client Secret if expired.

    Thanks

    Best Regards


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Thursday, April 12, 2018 3:14 PM