Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: Gmail an OAUTH2 login Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
JPS
Newbie
Newbie


Joined: 25 September 2012
Online Status: Offline
Posts: 2
Posted: 25 September 2012 at 1:23pm | IP Logged Quote JPS

I'am currently trying to perform an OAUTH2 login with Mailbee. I obtained a valid access token via DotNetOpenAuth. For the login via Mailbee I am using one of the following approaches:

* Custom SASL method: This works fine if I return in GetSaslId() "XOAUTH" + the initial client response as described here: https://developers.google.com/google-apps/gmail/xoauth2_protocol. I can see in the log file that I get an OK from the server. However I must return something in the following CreateNextClientAnswer(), but no matter what I return, I get an error. As far as I understand the custom SASL method is not designed for this immediate response (SASL-IR) ... Am I missing something here? Is it possible to make this work??
* Try to login via BeginExecuteCustomCommand(). This works fine either, but because I am performing a login via this custom method MailBee throws an exception on any further call because it thinks I am not logged in. I have found no possibility tell MailBee about the successful login.

This is a very urgent matter, because currently OAUTH v1 is not working with MailBee either and the OAUTH access to GMail was the only reason we purchased MailBee!!

Kind regards
JPS
Back to Top View JPS's Profile Search for other posts by JPS
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 25 September 2012 at 2:26pm | IP Logged Quote Igor

I will check this with the developers, but cannot guarantee anything. MailBee.NET Objects, just like any other commercial product we offer, is available as full-featured 30-days trial exactly for the purpose of making sure the product meets your requirements prior to obtaining a license.

Please note that this forum is a community resource. If you require help from AfterLogic team directly, you should use our HelpDesk instead.

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


Joined: 25 September 2012
Online Status: Offline
Posts: 2
Posted: 26 September 2012 at 1:47am | IP Logged Quote JPS

Hi Igor,

thanks for the reply. I have send the question to the HelpDesk.
Back to Top View JPS's Profile Search for other posts by JPS
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 21 December 2012 at 12:02am | 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 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: 6104
Posted: 21 December 2012 at 1:15am | IP Logged Quote Igor

Note that 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
 

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