[openstreetmap/openstreetmap-website] Add support for OAuth 2 (#3177)
Tom Hughes
notifications at github.com
Wed Apr 14 21:39:10 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 never destroy users to it's all a bit academic...
--
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_r613604373
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210414/9453b6b6/attachment.htm>
More information about the rails-dev
mailing list