Author |
|
Amarok Newbie
Joined: 24 September 2012 Location: Germany
Online Status: Offline Posts: 2
|
Posted: 24 September 2012 at 2:31am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 24 September 2012 at 2:49am | IP Logged
|
|
|
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 |
|
|
Amarok Newbie
Joined: 24 September 2012 Location: Germany
Online Status: Offline Posts: 2
|
Posted: 24 September 2012 at 5:43am | IP Logged
|
|
|
In other .Net-libraries, the 3-legged authentication works. Therefore, I am assuming that this is no fault of GMail.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 25 September 2012 at 4:03am | IP Logged
|
|
|
OK, I've asked the developers to recheck this.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 21 December 2012 at 12:01am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 21 December 2012 at 1:16am | IP Logged
|
|
|
Important: this build of DotNetOpenAuth library requires .NET Framework 3.5 or above.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
litmusjustin Newbie
Joined: 15 March 2013
Online Status: Offline Posts: 4
|
Posted: 17 April 2013 at 8:12am | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 17 April 2013 at 12:51pm | IP Logged
|
|
|
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 |
|
|
litmusjustin Newbie
Joined: 15 March 2013
Online Status: Offline Posts: 4
|
Posted: 17 April 2013 at 1:02pm | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 25 April 2013 at 12:04am | IP Logged
|
|
|
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 |
|
|