Step-by-Step Guide to Configuring "Less Secure App" to OAuth for Email SMTP Settings
Step 1: Add Redirect URLs to Google Cloud Console
- Log In:- Sign in to Google Cloud Console using your Google Administration account.
 
- Access Credentials:- Navigate to APIs & Services > Credentials.
 
- Select or Create an OAuth Client:- Under OAuth 2.0 Client IDs, click on your existing application.
- Or, create a new one if needed.
 
- Add Redirect URLs:- In the Authorized redirect URIs section, enter each required redirect URL. The Redirect URI is the base url for your Edsembli site, with /EmailAuth/GoogleAuthCallback added.
 
- Save Changes:- Confirm and save your updates.
 
Step 2: Add Google Emails to Google Cloud Console
- Navigate to IAM Settings:- Go to IAM & Admin > IAM in Google Cloud Console.
 
- Add Email Addresses:- Add the required Google email addresses under your Google Administration account.
 
- Assign Roles:- Assign the necessary roles (e.g., OAuth Developer) to these emails.
 
- Save Configuration:- Save your changes to update the IAM settings.
 
Step 3: Add Client ID and Client Secret
- Access Email Settings:- In your application, navigate to:
 Web Application > Board and School > Setup > Email Settings.
 
- In your application, navigate to:
- Modify Email Settings:- Click on Go to modify email settings.
 
- Enter Credentials:- Client ID: Enter the provided value.
- Client Secret: Enter the provided value.
- Reply Email Address: Use the email defined in Step 2.
 
- Connect with Google:- Click on the Connect with Google button.
 
- Authenticate:- You will be redirected to the Google Gmail login page.
- Select the appropriate email (the one added in Step 2).
 
- Redirection and Verification:- After authentication, you will be redirected to the Dashboard page (note that future updates will redirect you directly to the Email Settings page).
- Verify the connection by clicking on Test.
 
