[openstreetmap/openstreetmap-website] Add support for OAuth 2 (#3177)

Tom Hughes notifications at github.com
Wed Apr 14 21:43:32 UTC 2021


@tomhughes commented on this pull request.



> @@ -68,6 +68,8 @@ class User < ApplicationRecord
   has_many :client_applications
   has_many :oauth_tokens, -> { order(:authorized_at => :desc).preload(:client_application) }, :class_name => "OauthToken"
 
+  has_many :oauth2_applications, :class_name => Doorkeeper.config.application_model.name, :foreign_key => :owner_id
+

Well we don't have an immediate use for them but they won't do any harm so I'll add them.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3177#discussion_r613606444
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210414/9d706763/attachment.htm>


More information about the rails-dev mailing list