[openstreetmap/openstreetmap-website] Add openid connect support using doorkeeper-openid_connect gem (PR #4226)
Tom Hughes
notifications at github.com
Wed Sep 6 11:32:08 UTC 2023
@tomhughes commented on this pull request.
> + # normal_claim :_foo_ do |resource_owner|
+ # resource_owner.foo
+ # end
+
+ # normal_claim :_bar_ do |resource_owner|
+ # resource_owner.bar
+ # end
+ # end
+
+ claims do
+ claim :preferred_username, :scope => :openid do |resource_owner, _scopes, _access_token|
+ # Pass the resource_owner's preferred_username if the application has
+ # `profile` scope access. Otherwise, provide a more generic alternative.
+ resource_owner.display_name
+ end
+ end
You'll have to do it manually following the instructions at https://github.com/openstreetmap/openstreetmap-website/blob/master/CONFIGURE.md#giving-administratormoderator-permissions for the first administrator - after that an administrator can grant administrator and/or moderator to others by using the stars beside their name on the profile page.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4226#discussion_r1317143680
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4226/review/1613114596 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230906/e47c54f3/attachment.htm>
More information about the rails-dev
mailing list