Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Koller <markus-koller@gmx.ch>2016-12-09 20:36:50 +0300
committerAlexis Reigel <mail@koffeinfrei.org>2017-03-07 16:54:35 +0300
commitc4982890489d254da2fe998aab30bf257767ed5e (patch)
tree0828e0cab70cabaceffcc0d588db32ac38ddf310 /app/models/oauth_access_grant.rb
parentfb4a486605e10692b5577f0700fbce38bebcc311 (diff)
Implement OpenID Connect identity provider
Diffstat (limited to 'app/models/oauth_access_grant.rb')
-rw-r--r--app/models/oauth_access_grant.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/oauth_access_grant.rb b/app/models/oauth_access_grant.rb
new file mode 100644
index 00000000000..3a997406565
--- /dev/null
+++ b/app/models/oauth_access_grant.rb
@@ -0,0 +1,4 @@
+class OauthAccessGrant < Doorkeeper::AccessGrant
+ belongs_to :resource_owner, class_name: 'User'
+ belongs_to :application, class_name: 'Doorkeeper::Application'
+end