Delphi: So XOAuth2 SASL component that can do OAuth2 (via: Asbjørn Heid, G+)
Posted by jpluimers on 2014/08/29
Thanks Asbjørn Heid for sharing this:
I made this! –
So this week I’ve been mostly trying to add some GMail integration to our app. Google now requires OAuth2 authentication when using IMAP, unless you turn off some scary-sounding security setting on your account.
While Indy‘s IMAP component supports SASL authentication, there was no XOAuth2 SASL component out of the box. Thanks to the new REST stuff in Delphi, the OAuth2 basics where there so just had to tie them together.
In case others might find it fruitful, I’ve shared my results here: https://github.com/lordcrc/IndySASLOAuth2
notes:
- XE5+
- might need latest Indy sources from their SVN server
- requires OpenSSL binaries for Indy
- OAuth2 is not compatible with OAuth.
–jeroen
via: So this week I’ve been mostly trying to add some GMail integration to our app.….






Thaddy said
Hm, I have a dream that someone (l.G) pulls the pearl from that thrash called Indy and put it into a proper library called synapse ;)
Must not get more ridiculious than that:
Since OAUTH2 is a must have, temporary revert code to Indy?
My SLA’s are not suited for Indy. (That’s polite, isn’t it?)