<p>We, as in maps.me, have published the first beta version of our own authentication service, passport.maps.me (does not have the front page yet). The plan is to use it instead of osm.org oauth to authenticate users, and then register them on osm.org using that account.</p>
<p>It would give us an independent profile storage and, more important, an option to use native SDKs for facebook and google on mobile devices. I could not negotiate that for osm.org (re: <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1114" class="issue-link js-issue-link" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1114" data-id="123182939" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#1114</a> and mailing lists), so we decided to make an alternative service. It might be possible for other mobile apps to use the same service. That would be a benefit for other authors of OSM mobile editors, simplifying their sign-up workflow.</p>
<p>Until it is possible to link multiple social accounts to a profile (see <a href="https://github.com/openstreetmap/openstreetmap-website/issues/1274" class="issue-link js-issue-link" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/1274" data-id="174746493" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#1274</a>), we plan to use this only for new users, directing existing users to osm.org for all kinds of linked accounts, including facebook and google. Nothing is changed for the osm side, besides a new icon on the login page.</p>
<p>This pull requests adds two auth providers: <code>mapsme</code> for a regular web-based authentication via the passport site, and <code>mapsme_token</code> for a token-based authentication, which would allow skipping the passport site when logging in on a mobile device. The latter rewrites the provider string to <code>mapsme</code>, so there is no difference to the database which one of these is used.</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/1433'>https://github.com/openstreetmap/openstreetmap-website/pull/1433</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Add MAPS.ME authentication</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1433/files#diff-0">Gemfile</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1433/files#diff-1">Gemfile.lock</a>
    (5)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1433/files#diff-2">app/assets/images/mapsme.png</a>
    (0)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1433/files#diff-3">app/controllers/user_controller.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1433/files#diff-4">app/views/user/login.html.erb</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1433/files#diff-5">config/example.application.yml</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1433/files#diff-6">config/initializers/omniauth.rb</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1433/files#diff-7">config/locales/en.yml</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1433/files#diff-8">lib/auth.rb</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1433/files#diff-9">test/controllers/user_controller_test.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1433/files#diff-10">test/fixtures/users.yml</a>
    (14)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1433/files#diff-11">test/integration/user_creation_test.rb</a>
    (114)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1433/files#diff-12">test/integration/user_login_test.rb</a>
    (90)
  </li>
</ul>

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

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/1433">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLfoAiED1FXrRXx4HjK1fIxc0mR7qks5rax0lgaJpZM4L8Kyb">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABWnLTtHzh18XMyH-mbZUlJnOlwVEh6cks5rax0lgaJpZM4L8Kyb.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/1433"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Add MAPS.ME authentication (#1433)"}],"action":{"name":"View Pull Request","url":"https://github.com/openstreetmap/openstreetmap-website/pull/1433"}}}</script>