+2 votes

Dear sir i have an admin domain on google contain many emails and i have admin user name and password also the oauth key

i want to make portlet in my portal show our clients their mail
so i found your library so i want to know if it can do that before i buy it and how

by

1 Answer

0 votes

Yes, this is possible. You should use OAuth 2.0 service account. The idea is very similar to 2-legged OAuth.

There is some configuration in Google APIsconsole to create a service account and obtain p12 certificate. Then in Google Apps Dashboard you need to authorize the service account to access emails. Finally use DotNetOpenAuth and Mail.dll to authorize access and connect to the IMAP server.

You can find all steps and working code here: OAuth 2.0 with Gmail over IMAP for service account.

by (297k points)
...