title: How to use Google Login with Apache Superset
body: <p>Our team has implemented Apache Superset for a period of time. Now, we want to use the Google Login with this platform. However, after deliberately searching from a lot of sources, We are still unable to get this task done.</p>
  <ol>
  <li><p>We make a copy of config.py in the superset folder and named it as superset_config.py. The location of superset_config.py is in the superset folder. <code>$ cp config.py superset_config.py</code></p>
  </li>
  <li><p>In superset_config.py, we have modified</p>
  <ul>
  <li><p>We additionally imported AUTH_OAUTH</p>
  </li>
  <li><p>We modified AUTH_TYPE = AUTH_DB to become AUTH_TYPE = AUTH_OAUTH</p>
  </li>
  <li><p>We uncommented two lines including AUTH_USER_REGISTRATION = True and
  AUTH_USER_REGISTRATION_ROLE = &quot;Public&quot;
  in order to make both of them turns active.</p>
  </li>
  <li><p>We added the list called OAUTH_PROVIDERS.</p>
  <pre><code>OAUTH_PROVIDERS = [
   {
     ‘name’: ‘google’,
     ‘whitelist’: [‘@company.com’],
     ‘icon’: ‘fa-google’,
     ’token_key’: ‘access_token’, 
     ‘remote_app’: {
       ‘base_url’: ‘https://www.googleapis.com/oauth2/v2/',
       ‘request_token_params’: {
       ‘scope’: ‘email profile’
       },
       ‘request_token_url’: None,
       ‘access_token_url’:    ‘https://accounts.google.com/o/oauth2/token’,
       ‘authorize_url': ‘https://accounts.google.com/o/oauth2/auth',
       ‘consumer_key’: ‘GOOGLE_OAUTH_KEY’,
       ‘consumer_secret’: ‘GOOGLE_OAUTH_SECRET’
      }
    }
  ]
  </code></pre>
  </li>
  </ul>
  </li>
  </ol>
  <p>In this code, we modified last 2 final lines from GOOGLE_OAUTH_KEY and GOOGLE_OAUTH_SECRET to be our client_id and client_secret in the downloaded json file we have got from Google Cloud Platform (OAuth 2.0 Client IDs of Credentials APIs &amp; Services)</p>
  <p>Please kindly describe us what we went wrong and give us the suggestion.
  As we are very new to the Apache Superset, we would very appreciate if you can provide us the step-by-step how to make a login page of Apache Superset to be the Google Login.</p>
  <p>PS. we prefer non-docker solutions due to some technical issues our Apache Superset is running on Ubuntu EC2</p>