Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Excerpt |
---|
This guide analyzes the steps to setup a Google Gmail App to send mails (e.g., automatic notifications), combining OAuth 2.0 client credentials flow, without the user’s interaction. |
Creating a New Project
Go
Otherwise, if you already have projects, select the drop-down with the name of the project, and in the dialog box select New Project.
Image RemovedEnter the Project Name and optionally, select an Organization. Then select Create.
Image Removedto Google's Developer Console and click on the button Select A Project under the Navigation Bar at the top of the screen.
Image AddedClick on the New Project button.
Image AddedFill in the name of the Project Name, and if appropriate, select the Organization that your program should be associated with. Then click on Create.
Image Added
Obtaining an OAuth2 Client ID and Secret
From the console, selectAfter creating a project, the next step is to create the OAuth2 credentials.
Click the ☰ symbol, move down to APIs & Services and then select OAuth consent screen.
- Image Added
Select the External
radio item and then click Create.
- Image Added
Fill in the Application name
and any other fields that are appropriate for your application
In the next two sections, specify your Scopes and Test users, and in the last section, Summary, select Back to Dashboard.
Image RemovedFrom the Dashboard, select Credentials.
Image RemovedIn the Credentials section, select Create Credentials and then OAuth client ID
Image RemovedUnder Application type select Web application. Specify a Name and under Authorized redirect URIs select Add URI.
Image Removedhttp:
and then click Create.
Image AddedClick + Create Credentials and then select OAuth client ID.
Image AddedSelect the Other radio item in the Application type section and then type in a name to use for the OAuth client ID. Once completed, click Create.
Image AddedAt this point, you will be presented with a web dialog that will allow you to copy the Client ID and Client Secret strings into your clipboard to paste them into your program.
Image AddedClick on the client you just registered and add your redirect URL.
Image AddedThe URL should be https://{BSS-URL}/core/email/gmail/authCode
After entering the URI, select Create.
Image RemovedA dialog box will display Your Client ID and Your Client Secret.
Image RemovedRw ui textbox macro | ||
---|---|---|
| ||
The URL should begin with the https format. |
Your App Registration is ready.
BSS Email Preferences Setup
On BSS, navigate to BSS Setup > Administration > System Options > Organization settings, and under the Email Preferences, at the end of the page,select the Modern authentication mechanism. For the Gmail client fill in the ClientId, the Secret, and the Email you used to create the application on Google.
Rw ui textbox macro | ||
---|---|---|
| ||
Do not click the Authorize button before saving! |
Then, Save the form.
Afterwards, click on the Authorize button.
By clicking on the Authorize button, you are redirected to the sign in with Google page where the following steps must by ensued.
First choose your Google account.
Then click on the Continue button to proceed.
Also, click on Continue to accept the additional access.
And you should see the the Status change along with the respective buttons. Now, the user can renew the Authentication or revoke it at will.
Table of Contents
Table of Contents | ||||||
---|---|---|---|---|---|---|
|