<p dir="auto">...as discussed in <a href="https://github.com/openstreetmap/operations/issues/507" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/operations/issues/507/hovercard">Issue 507</a> and described by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mmd-osm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mmd-osm">@mmd-osm</a>.</p>
<p dir="auto">To activate, set the value of <code class="notranslate">doorkeeper_signing_key</code> to pem of the RSA private key.</p>
<p dir="auto">Allows using openstreetmap as an identity provider.</p>
<p dir="auto">Adds <code class="notranslate">openid</code> scope to OAuth2 authorizations, required to login to OSM.</p>
<p dir="auto">Currently, the only claims returned are <code class="notranslate">sub</code> and <code class="notranslate">preferred_username</code>.</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/4226'>https://github.com/openstreetmap/openstreetmap-website/pull/4226</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4226/commits/b0942083d212c6f5a2950ee5aa803ddf69a02a0b" class="commit-link">b094208</a>  Add unconfigured doorkeeper-openid_connect</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4226/commits/0c6fa1c7ae7f99c1d529ad2c685c460fb79efdfc" class="commit-link">0c6fa1c</a>  Add openid connect support using doorkeeper-openid_connect gem</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4226/files">13 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4226/files#diff-d09ea66f8227784ff4393d88a19836f321c915ae10031d16c93d67e6283ab55f">Gemfile</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4226/files#diff-89cade48462044ee1b672dc5f4c3ec250fbd29effcd8932096a23c1283c6731f">Gemfile.lock</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4226/files#diff-a883ca6abfde69d2e3b1191317f5e544efcc5b7f9f3a17ab9369cbbac37f5d5a">app/views/oauth2_authorizations/new.html.erb</a>
    (2)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4226/files#diff-563aa80258cbc5f5bf2e3a2cfae745a84fe0d9c3fe3bd6e269e93d18b3b553dc">config/initializers/doorkeeper_openid_connect.rb</a>
    (76)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4226/files#diff-8427608a5427b7a4947ea50966816854a936be1af40de2be80f2a014503d32a3">config/locales/doorkeeper_openid_connect.en.yml</a>
    (23)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4226/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4226/files#diff-959bc9abc46a55332bb64d5155a79323afa75a50ec1a2137ddd22d926f62c6c5">config/routes.rb</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4226/files#diff-e769bbb8c1ba3711c5403b424ed9c218ffafba7f1890ee394717196f28ff4540">config/settings.yml</a>
    (4)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4226/files#diff-b51a2bdadf58f1955dbdec4c562c800b70f7cd46a5ca57e9a26a60e4be91d39b">db/migrate/20230830115219_create_doorkeeper_openid_connect_tables.rb</a>
    (15)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4226/files#diff-4f408044cd52f20b5f1040005439e423174247a5de6296159f90a72efb6261a1">db/migrate/20230830115220_validate_create_doorkeeper_openid_connect_tables.rb</a>
    (5)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4226/files#diff-990caf50cd88c8ce31aa5070e9d35bbb264ac18336e34412b32debb70d67b833">db/migrate/20230830115221_add_openid_scope.rb</a>
    (11)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4226/files#diff-1dd5a8f580b9615769ddc19a64a98f455d9d20eb149c443f41d9d3c797d39b12">db/structure.sql</a>
    (76)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4226/files#diff-373d9a0dc0a0811fb3fb744cfed277eb94abc4cbc3dac74ff66ab787a06766be">lib/oauth.rb</a>
    (2)
  </li>
</ul>

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

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4226">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKDS5GLGJ3PQU7XUKLXYXNTLANCNFSM6AAAAAA4KPKL4I">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLILGLPDMKETWDB2XWDXYXNTLA5CNFSM6AAAAAA4KPKL4KWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHHAFAKEE.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/4226</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/4226",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4226",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>