motze92 / office365-mail

Office365 transport for Laravel
MIT License
62 stars 21 forks source link

client secret expired date #19

Closed anurat closed 2 years ago

anurat commented 3 years ago

I know this is not related directly to the package but the package relies on MS graph API which can only allow to create a client secret with at most 24 months expired date.

I wonder whether this is just my organization settings and it can be configured to "never" or this is the new policy that requires the client secret to always have expired date.

If it can be configured to "never" please let me know, otherwise workaround on the expired date would be appreciated.

nikolai-belkin commented 2 years ago

Looks like it is a maximum within MS Azure portal.

However, a work-around suggested here is to create a client secret token using a powershell script (I haven't tried it).

motze92 commented 2 years ago

I have updated the instructions.