O365 Oauth Inbound Connection

I have the outbound Office 365 email working. I just can’t get the inbound working. Keep getting wrong user or password when trying to connect. I followed the Oauth connection procedure in the documentation and all that seems to go fine. I get an access token, but when trying to connect with an inbound account I get incorrect password or login when trying to select folders.

Does anyone have this working and can offer some tips on how they got it working? I’d just like to know that some people have actually got it working.