Re: Support for Oauth2 and Office365
Adam Stein via evolution-list <[email protected]> Sun, 20 Nov 2022 16:02:56 -0500
| Newsgroups | gmane.comp.gnome.evolution.general |
|---|---|
| Message-ID | <[email protected]> |
--===============4632531786576452461== Content-Type: multipart/alternative; boundary="=-VR7FUWdAQah2hWALeZuS" --=-VR7FUWdAQah2hWALeZuS Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 2022-11-19 at 18:14 +0100, Milan Crha via evolution-list wrote: > On Fri, 2022-11-18 at 20:43 -0500, Adam Stein via evolution-list > wrote: > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0The reported error wa= s =E2=80=9C2000008;reason=3D"The V1AppActAs > > token > > doesn't contain the permissions required by the target > > API.";error_category=3D"invalid_grant"=E2=80=9D. >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Hi, > it's very confusing, to say the least. I face it too, but not > consistently and not on all instances, which is very odd. >=20 > When you follow the Help link in the account Properties->Receiving > Email tab, then it'll bring you into a Wiki page with a list of three > applications IDs: > https://wiki.gnome.org/Apps/Evolution/EWS/OAuth2#Available_application_= ID >=20 > Try to change the application ID, it can help, though it's tricky to > propagate it everywhere. First close Evolution, then open `seahorse` > and delete passwords with name "Office365[[email protected]]", if any, > which correspond to the OAuth2 credentials. Then restart background > processes with a command in a terminal: >=20 > =C2=A0=C2=A0 evolution --force-shutdown >=20 > The interesting thing about this is that the server rejects the > OAuth2 > process after providing credentials, aka after being logged in to the > server. It's supposed to ask for the confirmation whether the user > trusts the applicatio. It seems to me like the server remembers the > machine/user already accepted the OAuth2 app, but with a slightly > different key and the server panics this way, instead of re-asking > for > the consent. It's only a guess. >=20 > Feel free to file a bug for the evolution-ews ( > https://gitlab.gnome.org/GNOME/evolution-ews/=C2=A0), to not have it > forgotten, as it does worth to investigate further. >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Bye, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Milan >=20 The first application ID did work. Thanks for that. I had set up an application but it never worked (that error I mentioned). Could be the Evolution application uses EWS while I was trying with IMAP specifically. Supposedly IMAP will be enabled under oauth2, so when it is for my company, I'll see if the error goes away. If not, might have to file a bug. --=20 Adam ([email protected]) --=-VR7FUWdAQah2hWALeZuS Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable <html><head></head><body><div>On Sat, 2022-11-19 at 18:14 +0100, Milan Crha= via evolution-list wrote:</div><blockquote type=3D"cite" style=3D"margin:0= 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>On Fri, 202= 2-11-18 at 20:43 -0500, Adam Stein via evolution-list wrote:<br></div><bloc= kquote type=3D"cite" style=3D"margin:0 0 0 .8ex; border-left:2px #729fcf so= lid;padding-left:1ex"><div> = The reported error was =E2=80=9C2000008;reason=3D"The V1AppActAs token<br><= /div><div>doesn't contain the permissions required by the target<br></div><= div>API.";error_category=3D"invalid_grant"=E2=80=9D.<br></div></blockquote>= <div><br></div><div> Hi,<br>= </div><div>it's very confusing, to say the least. I face it too, but not<br= ></div><div>consistently and not on all instances, which is very odd.<br></= div><div><br></div><div>When you follow the Help link in the account Proper= ties->Receiving<br></div><div>Email tab, then it'll bring you into a Wik= i page with a list of three<br></div><div>applications IDs:<br></div><div><= a href=3D"https://wiki.gnome.org/Apps/Evolution/EWS/OAuth2#Available_applic= ation_ID">https://wiki.gnome.org/Apps/Evolution/EWS/OAuth2#Available_applic= ation_ID</a><br></div><div><br></div><div>Try to change the application ID,= it can help, though it's tricky to<br></div><div>propagate it everywhere. = First close Evolution, then open `seahorse`<br></div><div>and delete passwo= rds with name "Office365[<a href=3D"mailto:[email protected]">[email protected]</= a>]", if any,<br></div><div>which correspond to the OAuth2 credentials. The= n restart background<br></div><div>processes with a command in a terminal:<= br></div><div><br></div><div> evolution --force-shutdown<br></d= iv><div><br></div><div>The interesting thing about this is that the server = rejects the OAuth2<br></div><div>process after providing credentials, aka a= fter being logged in to the<br></div><div>server. It's supposed to ask for = the confirmation whether the user<br></div><div>trusts the applicatio. It s= eems to me like the server remembers the<br></div><div>machine/user already= accepted the OAuth2 app, but with a slightly<br></div><div>different key a= nd the server panics this way, instead of re-asking for<br></div><div>the c= onsent. It's only a guess.<br></div><div><br></div><div>Feel free to file a= bug for the evolution-ews (<br></div><div><a href=3D"https://gitlab.gnome.= org/GNOME/evolution-ews/">https://gitlab.gnome.org/GNOME/evolution-ews/</a>= ), to not have it<br></div><div>forgotten, as it does worth to invest= igate further.<br></div><div><br></div><div> &= nbsp; Bye,<br></div><div> &nb= sp; Milan<br></div><div><br></div></blockquote><div><br></div><div>The= first application ID did work. Thanks for that.</div><div><br></div><div>I= had set up an application but it never worked (that error I mentioned). Co= uld be the Evolution application uses EWS while I was trying with IMAP spec= ifically. Supposedly IMAP will be enabled under oauth2, so when it is for m= y company, I'll see if the error goes away. If not, might have to file a bu= g.</div><blockquote type=3D"cite" style=3D"margin:0 0 0 .8ex; border-left:2= px #729fcf solid;padding-left:1ex"></blockquote><div><br></div><div><span><= pre>-- <br></pre><pre>Adam ([email protected]) </pre></span></div></body></html> --=-VR7FUWdAQah2hWALeZuS-- --===============4632531786576452461== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ evolution-list mailing list [email protected] To change your list options or unsubscribe, visit ... https://mail.gnome.org/mailman/listinfo/evolution-list --===============4632531786576452461==--