Open menu

Setup Google OAuth for Portainer Remote Access


Setup Google OAuth for Portainer Remote Access

Just found this very good youtub video - Securely Login to Portainer Remotely with Google Authentication

He also has a Github Gist

Steps from the Gist

You're going to need a Google Developer's Account: https://console.developers.google.com/

https://console.cloud.google.com/projectselector2/home/dashboard?authuser=2&organizationId=0&supportedpurview=project

You'll need to know what you want your Portainer URL to be.

  1. Create a Project
  2. Enter a Project Name and click "Create"
  3. APIs & Services
  4. +Create Credentials
  5. OAuth client ID
  6. Configure Consent Screen
  7. External
  8. Create
  9. Give the app a name
  10. Enter a support email
  11. Developer contact information
  12. Nothing on Scopes
  13. Nothing on Test users
  14. Back to Dashboard
  15. Credentials
  16. +Create Credentials
  17. OAuth Client ID
  18. Application Type = Web application
  19. Enter a name: "Portainer"
  20. Authorized JavaScript Origins: https://port.yoursite.com
  21. Authorized redirect URIs: https://port.yoursite.com
  22. Create

Next Page will have:

At some point, you'll want to Publish your App.

In portainer