Home General
New Blog Post: Email: Multi-Service

GMail OAuth for multiple acconuts

Hi!

I have an application that uses GMail for sending e-mails. This application is used by many clients, with different Gmail accounts.

Google decided to discontinue the support for IMAP access, so I have to use rest mail interface. But I don't understand how change the settings to use my app for many users.

Does each my customer have to set a different ClientID and Client secret in the admin console? If yes, then I'm screwed.. 150 customers ...

I hate GMail for doing this.. :(

Comments

  • Are there any comprehensive manual on how to setup GMail REST api (on Google and Delphi side)?
  • Hi Marko,

    >>Does each my customer have to set a different ClientID and Client secret in the admin console?

    No, the ClientID and Client Secret are app based, so each application needs one. The users simply need a Gmail account.

    See the following article(s) on the Web Mail feature in RB and how to set up Gmail REST api support.

    https://rbwiki.digital-metaphors.com/output/email/web-mail-overview/

    https://rbwiki.digital-metaphors.com/output/email/web-mail-setup-gmail/


    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • Thank you.

    I'm stuck on redirect port, what value to use here?
  • Hi Marko,

    In most cases the Redirect Port property should be left as 0. This property allows the developer to define a specific port for validation in the case of a strict firewall etc. Leaving this as 0 will use a random, unused port for the task.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 14
    Hello!

    OK, I finally made some progress, but I'm now stuck after the confirmation button click (pic below). It stays on the screen and never goes on.

    image
  • Hi Marko,

    I just sent you an email to discuss this further. I will post the solution to this thread once it is found.


    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • After researching this further, the issue was due to numerous changes made by Embarcadero to Delphi 11.1 which required us to alter our previous logic. A patch is now available solving the problem. Registered users with an active software subscription can contact support@digital-metaphors.com to receive the patch.
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.