[openstreetmap/openstreetmap-website] Add openid connect support using doorkeeper-openid_connect gem (PR #4226)

Milan Cvetkovic notifications at github.com
Mon Sep 4 20:08:33 UTC 2023


@milan-cvetkovic commented on this pull request.



> @@ -0,0 +1,11 @@
+class AddOpenidScope < ActiveRecord::Migration[7.0]
+  def self.up
+    add_column :oauth_tokens, :allow_openid, :boolean, :null => false, :default => false
+    add_column :client_applications, :allow_openid, :boolean, :null => false, :default => false

Thanks for catching this. There is a number of classes used in both Oauth1 and Oauth2, for a moment I thought that these tables are used for both.

It was my (failed) attempt to fix the Oauth1 tests failing due to new `openid` scope in `lib/oauth.rb`. I will have to take into account that this scope is _only_ applicable to Oauth2,



-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4226#discussion_r1315184905
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4226/review/1609927400 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230904/746c8cfa/attachment.htm>


More information about the rails-dev mailing list