Google OAuth Provider
Portainer Business can be connected to Google OAuth provider in an easy way without need to understand complex configuration.
You will need to have the following info handy before configuring OAuth using Google Provider.
- Client ID: Public identifier of the OAuth Application.
- Client Secret: The secret of this client.
You can obtain these details by following the steps below:
Login to your Google Cloud Portal (console.cloud.google.com) as an Admin
Click on “Select Project”, then select your Org, and then select “NEW PROJECT”
Give the project a name, such as portainer-login, and then click “Create”
Wait for the project to be created (30 seconds), and then click on the navigation bar, and select “APIs & Services”, Credentials. Select the drop down list in the header bar, and change the focus to the “portainer-login” project
Click on “OAuth consent screen” Change the application type to “Internal” In the “Application name” input box, enter the project name “portainer-login” Scroll down to authorised domains, and enter in the FQDN of the server that hosts your Portainer instance (in our case, test.portainer.io) Click Save.
To start to configure Google OAuth Provider, once you logged to Portainer, click Settings and then authentication. After that, select OAuth option and then, select Google.
Define the following information and click Save settings.
- Client ID
- Client Secret
Manage access to OAuth Team and Users
To understand how to enable access to OAuth Teams and Users, please, refer to this article.