This documentation states the expiry date can only be up to 3 years maximum, but the code allows for the expiry date to be set to 10, 20 years (etc) in the future. Has something changed with the module? Is there any risk (other than good practice) to have it set greater than 3 years?
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
afaik, there wouldn't be any negative implications to doing so in regards to the functionality in place. Obviously, expiring secrets are a safe guard from a security perspective for your applications permissions into SharePoint. If a client id/secret combination somehow were compromised, the longer the expiration, the longer it could be exploited.
I suggest then the documentation change because it clearly says "(up to 3 years maximum)". Thanks.
@gheester agreed... i'll get it fixed
Hi Andrew. One other thing. I also checked the permissions, and whilst the documentation states you need to be a Global administrator, I have tested the role "Application Administrator" and it works. You might want to change that too.