Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: Mailbee .Net and Gmail Outh Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Amarok
Newbie
Newbie
Avatar

Joined: 24 September 2012
Location: Germany
Online Status: Offline
Posts: 2
Posted: 24 September 2012 at 2:31am | IP Logged Quote Amarok

Hello,

I tried to use the OAuth connection to Gmail like in the Mailbee documentation.
http://www.afterlogic.com/mailbee-net/docs/MailBee.OAuth.html

I got the request token but I canīt authorize the Token.

Google error:

The service is not available, please try again in a few hours.
(i got this error for two weeks)

Mailbee error:

WebException occurred. InnerException message follows: The remote server returned an error: (500) Internal Server Error.

or

WebException occurred. InnerException message follows: The remote server returned an error: (400) Bad Request.
Back to Top View Amarok's Profile Search for other posts by Amarok
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6103
Posted: 24 September 2012 at 2:49am | IP Logged Quote Igor

We're aware that 2-legged auth doesn't work for GMail, which is why we've placed a warning above that code sample:

Quote:
At this time Gmail doesn't allow any user to sign up for 2-legged OAuth support. But this may change in the future.


However, 3-legged OAuth support didn't work for us either. We suggest to contact GMail on this. Let us know if their feedback might help improving our product.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Amarok
Newbie
Newbie
Avatar

Joined: 24 September 2012
Location: Germany
Online Status: Offline
Posts: 2
Posted: 24 September 2012 at 5:43am | IP Logged Quote Amarok

In other .Net-libraries, the 3-legged authentication works. Therefore, I am assuming that this is no fault of GMail.
Back to Top View Amarok's Profile Search for other posts by Amarok
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6103
Posted: 25 September 2012 at 4:03am | IP Logged Quote Igor

OK, I've asked the developers to recheck this.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6103
Posted: 21 December 2012 at 12:01am | IP Logged Quote Igor

The developers have come up with a solution which allows using OAuth 2.0 with MailBee.NET Objects. In addition to the latest build of MailBee.NET.dll, you'll need to use DotNetOpenAuth library.

Sample code is available for download here.

To be able to use OAuth2 with GMail, you will need to register your application as described here.

Hope this helps!

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6103
Posted: 21 December 2012 at 1:16am | IP Logged Quote Igor

Important: this build of DotNetOpenAuth library requires .NET Framework 3.5 or above.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
litmusjustin
Newbie
Newbie


Joined: 15 March 2013
Online Status: Offline
Posts: 4
Posted: 17 April 2013 at 8:12am | IP Logged Quote litmusjustin

Hi Igor,

Has OAuth2 been dropped from the Imap component? With the new version of the DLL, AuthenticationMethods.SaslOAuth2 does not exist. What is the proper method of getting this now?

Thanks,
Justin
Back to Top View litmusjustin's Profile Search for other posts by litmusjustin
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 17 April 2013 at 12:51pm | IP Logged Quote Alex

The updated sample code is available for download here. The code in this sample will work in production version too.

AuthenticationMethods.SaslOAuth2 should be there. We had one intermediate build which dropped it but it's back now.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
litmusjustin
Newbie
Newbie


Joined: 15 March 2013
Online Status: Offline
Posts: 4
Posted: 17 April 2013 at 1:02pm | IP Logged Quote litmusjustin

In the version of the DLL that I have, it is not there. What is the newest version of the DLL, and where can I get it? The version that I have now that I downloaded less than a week ago is 7.3.4.388

Thanks!
Justin
Back to Top View litmusjustin's Profile Search for other posts by litmusjustin
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6103
Posted: 25 April 2013 at 12:04am | IP Logged Quote Igor

The latest DLL build is always available at:

http://www.afterlogic.com/updates/mailbee_net_2.zip

The version number you mentioned dates back to 2012 and is probably obtained by using the installer, which is updated much less often than separate DLL builds.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide