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.….
Filed under: Delphi, Delphi XE5, Delphi XE6, Delphi XE7, Development, Software Development