Configure email with Google OAuth 2.0
Starting from version 3.0.5, you can configure a general Google email using OAuth 2.0, to do this on your SudoWorkspace installation follow the steps below.
- Go to the Google Developer Console .
- Create a new project. You can also select an existing project.
- Add a name to your project. Google Console will generate a unique Project ID for it.
- Your project will appear on top of the left sidebar.
- Click on Library . You will see a list of Google APIs.
- Enable Gmail API .
- Click on the Credentials . Select OAuth Client ID under Create credentials. Choose the radio button for the Web Application. If asked to consent, choose External Enter app name, for example, SudoWorkspace Mailer Enter support email In the authorized domains section, click Add Domain Enter our SudoWorkspace installation domain
- If asked to consent, choose External
- Enter app name, for example, SudoWorkspace Mailer
- Enter support email
- In the authorized domains section, click Add Domain
- Enter our SudoWorkspace installation domain
- Copy the redirect URL in Setup->Settings->Email->Gmail OAuth 2.0, usually, it looks like https://your-installation-url.com/admin/smtp_oauth_google/token
- Give the Name. Under Authorized JavaScript origins enter your domain URL. In the ‘Authorized redirect URIs’ add the link of the redirect URL.
- Click on the Create button. You will get a client ID and client secret in the pop-up. Copy these details.
- Add the client id and client secret to your SudoWorkspace installation
- Save the email settings.
- After saving the Client ID and Client Secret, Click Authenticate .