Google OAuth Authentication
Google OAuth Authentication
Introduction
OAuth is a standard for authorisation in the field of technology, which allows users to authorise an app or service to sign in to another without revealing sensitive information such as usernames or passwords. The OAuth 2.0 protocol is used for authentication and authorisation with Google APIs.
How do you use Google OAuth?
1. Sign in or create an account on Google Cloud Platform
2. Click "Select a project"
3. Click "New Project"
4. Fill in the “Project name” field
5. Click "Create"
6. In Notifications, click "Create Project: Invent ERP"
7. Click on the hamburger menu (3 horizontal bars) in the top left corner
8. Click “APIs & Services” then "OAuth consent screen"
9. Choose a User Type
10. Click "Create"
11. Fill the “App Name” field under “App Information”
12. Fill the “User support email” field under “App Information”
13. Click "Add domain"
15. Click "Email addresses"
16. Click "Save and continue"
17. Click "Save and continue" again
18. If you chose the “External” under “User Type” then you will continue to “Test Users”. Click "Add users"
19. Fill in the blank in “Add Users”
20. Click "Add"
21. Click "Save and continue"
22. Click "Back to dashboard"
23. Click “Publish App
24. Switch to Invent ERP’s website
25. Sign up or Log in
26. Click "Configuration"
27. Click "Settings"
28. Click "Technical"
29. Click "Mail Server"
30. Click "Mail Servers"
31. Click "Add"
32. Fill the "Mail Server Description" field
33. Choose “Gmail OAuth Authentication” in the “Authenticate Using” drop-down menu
34. Click “Copy” to copy the redirect URL
35. Switch to "console.cloud.google.com”
36. Click "Credentials"
37. Click "Create credentials"
38. Click "OAuth client ID"
39. Choose an Application Type
40. In the “Name” field, enter “Invent”
41. Click “Add URLs”
42. Paste the URL
43. Click "Create"
44. Click “Copy client ID”
45. Switch to the Invent ERP website
46. Paste the “Client ID”
47. Switch to "console.cloud.google.com"
48. Click “Copy client secret”
49. Switch to the Invent ERP website
50. Paste “Client Secret”
51. Fill in the "Username" field with the email address you used on Google Cloud
52. Click "Create"
53. You will get this popup message
54. Scroll down and click on “Connect your Gmail account”
55. Switch to "accounts.google.com" and log in to your gmail account (Note: Ensure that it is the same email you have used to log in into Google Cloud)
56. If you get the message “Google hasn’t verified this app”, click on “Advanced”
57. Click "Go to inventerp.com (unsafe)"
58. Click “Continue”
59. Click “Continue”
-
It will automatically switch to Invent ERP’s website (Ensure that “Token Valid” is displayed on your screen)
61. Scroll up and click "Test Connection"
62. You should see a popup message