lwhitelock / HuduM365Automation

Hudu Microsoft 365 Syncronisation Tool
GNU Affero General Public License v3.0
29 stars 72 forks source link

Refresh token not refreshing automatically #20

Open jn1102 opened 1 year ago

jn1102 commented 1 year ago

Hi,

I am having an issue where the refresh token does not refresh automatically. I have to go in there, create a request, and do it manually.

Is there a fix to not have to refresh it manually every 90 days?

JohnDuprey commented 1 year ago

@jn1102 Check to see if you have a Per-User MFA service setting to remember devices for 90 days. If not there, maybe a conditional access policy with an inactivity limit.

jn1102 commented 1 year ago

I believe it was the issue as even manually refreshing this time resulted in a MFA error. I did turn off the MFA Conditional Access policy and waited a few hours before posting to see if it would work.

It ended up taking a complete 24 hours for the change to take effect. Now I need to figure out exactly what I need to exempt from the policy to keep everything happy.