]> git.openstreetmap.org Git - rails.git/commit
Add openid connect support using doorkeeper-openid_connect gem
authorMilan Cvetkovic <mcvetkovic@microsoft.com>
Wed, 30 Aug 2023 12:36:55 +0000 (12:36 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 3 Oct 2023 17:53:47 +0000 (18:53 +0100)
commit64bcf7652bc1053741ab58f3ff54505b3d7820ad
tree95723150666c93d7213109763b94b9a5e68473ea
parente996ee5dbca8b7ed26dbf55fcc116fa947f60188
Add openid connect support using doorkeeper-openid_connect gem

... as discussed in [Issue 507](https://github.com/openstreetmap/operations/issues/507)
and described by @mmd-osm.

To activate, set the value of `doorkeeper_signing_key` to RSA private key.

Allows using openstreetmap as an identity provider.

Adds `openid` scope to OAuth2 authorizations, required to login to OSM.

Currently, the only claims returned are:
 - "openid" scope: "sub" and "preferred_username"
 - "read_email" scope: "email"
app/views/oauth2_applications/_form.html.erb
app/views/oauth2_authorizations/new.html.erb
config/initializers/doorkeeper.rb
config/initializers/doorkeeper_openid_connect.rb
config/locales/en.yml
config/routes.rb
config/settings.yml
lib/oauth.rb