Thanks Jeremy.

We are forbidden from logging in Azure so I'll try to get the missing info from 
our IT.

Best wishes,
Marton


On Fri, Sep 10, 2021 at 01:54:40PM +0100, Jeremy Robst wrote:
> Hi,
> 
> I created an Azure App as per
> 
> https://github.com/harishkrupo/oauth2ms/blob/main/steps.org
> 
> so the redirect_host becomes localhost, redirect_port 5000, and
> redirect_path /getToken/
> 
> I logged into Azure with my O365 account, with no special privileges.
> 
> Jeremy
> -- 
> j...@robst.me.uk | (he/him)
> 
> 
> -----Original Message-----
> From: Marton Balazs
> Sent: 09/09/21 21:24:17
> 
> 
> Thanks for this Jeremy. The info Workplace provided is only
> 
> Client/application ID: f[...]1
> Directory/tenant/organization ID: b[...]b
> OAuth 2.0 token endpoint (v2): 
> https://login.microsoftonline.com/b[...]b/oauth2/token
> OAuth 2.0 authorization endpoint: 
> https://login.microsoftonline.com/b[...]b/oauth2/authorize
> 
> whereas auth2ms seems to additionally require
> 
> redirect_host
> redirect_port
> redirect_path
> 
> and I don't even know if there are some default values to try here. So I get
> 
> "
> Sorry, but we’re having trouble signing you in.
> AADSTS50011: The reply URL specified in the request does not match the reply 
> URLs configured for the application: 'f[...]1'.
> "
> 
> instead of a token. I also tried Thunderbird's client ID but got the same 
> issue.
> 
> I might need to get Workplace to provide more info then.
> 
> Many thanks,
> Marton
> 
> 
> 
> On Thu, Sep 09, 2021 at 07:30:55PM +0100, Jeremy Robst wrote:
> > Hi,
> > 
> > Yes, I run isync + o365 + oauth2. I use oauth2ms - https://github.com/
> > harishkrupo/oauth2ms
> > 
> > The isync config changes are only replacing PassCmd with a call to 
> > oauth2ms. I
> > don't use the --encode-xoauth2 option and it works well.
> > 
> > I can go into more detail later if you need.
> > 
> > Jeremy
> > 
> > On 9 September 2021 19:10:07 Marton Balazs <balm...@gmail.com> wrote:
> > 
> > 
> >     Hi,
> > 
> >     Happy isync user here (until now...), thanks so much for isync.
> >     Unfortunately we are on O365 at work, and unfortunately Workplace will 
> > be
> >     forcing Oauth2 on us soon, so I'm trying to get isync via IMAP/SMTP to 
> > work
> >     with Oauth2 in O365. Has anyone succeeded that?
> > 
> >     With my limited understanding I've tried various scripts that people 
> > linked
> >     on forums, and pretended I'm a Thunderbird as well as used the id's
> >     Workplace provided. I'm failing with each option. The machine runs Arch,
> >     updated regularly.
> > 
> >     oauth2token fails with some Python pickle error when trying to get 
> > token.
> >     https://pypi.org/project/oauth2token/
> >     https://wiki.archlinux.org/title/isync#Using_XOAUTH2
> > 
> >     M365-IMAP can go through with Thunderbird's id's but fails to 
> > authenticate
> >     in IMAP. It cannot get token with Workplace credentials, AADSTS9002313:
> >     Invalid request. Request is malformed or invalid
> >     https://github.com/UvA-FNWI/M365-IMAP
> > 
> >     mutt_oauth2
> >     fails with Thunderbird id's with AADSTS50011: The reply URL specified in
> >     the request does not match the reply URLs configured for the application
> >     and fails with Workplace id's with  AADSTS9002313: Invalid request. 
> > Request
> >     is malformed or invalid.
> >     https://gitlab.com/muttmua/mutt/-/blob/master/contrib/mutt_oauth2.py
> > 
> >     I'm attaching an org file with details. Any ideas would be appreciated.
> > 
> >     Many thanks,
> >     Marton
> > 
> > 
> > 
> >     ----------
> >     _______________________________________________
> >     isync-devel mailing list
> >     isync-devel@lists.sourceforge.net
> >     https://lists.sourceforge.net/lists/listinfo/isync-devel
> > 
> > 
> 
> 
> > _______________________________________________
> > isync-devel mailing list
> > isync-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/isync-devel
> 


_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to