<p>This replaces our existing OpenID based support for logging in with Google with an OAuth based approach, which will resolve <a href="https://github.com/openstreetmap/openstreetmap-website/issues/897" class="issue-link" title="Google is removing OpenID 2.0 support on 20th April">#897</a> and deal with the forthcoming remove of OpenID support by Google.</p>

<p>It's not ready for merging quite yet because it requires a small patch to the <code>omniauth-google-oauth2</code> gem to support transparent upgrading of OpenID logins to OAuth logins.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/918'>https://github.com/openstreetmap/openstreetmap-website/pull/918</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Add support for Google OAuth2 authentication</li>
  <li>Add tests for Google OAuth authentication</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/918/files#diff-0">Gemfile</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/918/files#diff-1">Gemfile.lock</a>
    (13)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/918/files#diff-2">app/controllers/user_controller.rb</a>
    (23)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/918/files#diff-3">app/helpers/user_helper.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/918/files#diff-4">app/views/user/account.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/918/files#diff-5">app/views/user/login.html.erb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/918/files#diff-6">app/views/user/new.html.erb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/918/files#diff-7">config/example.application.yml</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/918/files#diff-8">config/initializers/omniauth.rb</a>
    (10)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/918/files#diff-9">lib/auth.rb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/918/files#diff-10">test/fixtures/users.yml</a>
    (20)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/918/files#diff-11">test/integration/user_creation_test.rb</a>
    (118)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/918/files#diff-12">test/integration/user_login_test.rb</a>
    (139)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/918/files#diff-13">test/models/user_test.rb</a>
    (6)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/918.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/918.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/918.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/918.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/openstreetmap-website/pull/918">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABWnLZbT4EPMIcJMiKsiBG95ER-VIHCIks5nwfTSgaJpZM4DneRH.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/openstreetmap/openstreetmap-website/pull/918"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>