OAuth Login Screen, Office 365

Hello all,

I constantly get a popup to log into my account with microsoft every time I try to test the Oauth email settings. When I do actually try to log in, the page fails as seen in below screenshot. Everything is filled in on the company maintenance settings. I suspect it has something to do with the redirect URI. Has anyone seen this issue?