aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2021-08-19 18:11:30 +0200
committerGitHub <noreply@github.com>2021-08-19 12:11:30 -0400
commit4debb74edada3a415f672cd03ee51a5b3b215c00 (patch)
treed606546c070cb439d03f11b825c15014dcf84730 /models
parentc9bca8c5e0d31d7c844c8e9c96588d0c7c5e0392 (diff)
downloadgitea-4debb74edada3a415f672cd03ee51a5b3b215c00.tar.gz
gitea-4debb74edada3a415f672cd03ee51a5b3b215c00.zip
Fix wrong user in OpenID response (#16736)
* Fixed usage of wrong user. * Added tests.
Diffstat (limited to 'models')
-rw-r--r--models/fixtures/oauth2_grant.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/models/fixtures/oauth2_grant.yml b/models/fixtures/oauth2_grant.yml
index 105e3f22db..e52a2bce95 100644
--- a/models/fixtures/oauth2_grant.yml
+++ b/models/fixtures/oauth2_grant.yml
@@ -5,3 +5,19 @@
scope: "openid profile"
created_unix: 1546869730
updated_unix: 1546869730
+
+- id: 2
+ user_id: 3
+ application_id: 1
+ counter: 1
+ scope: "openid"
+ created_unix: 1546869730
+ updated_unix: 1546869730
+
+- id: 3
+ user_id: 5
+ application_id: 1
+ counter: 1
+ scope: "openid profile email"
+ created_unix: 1546869730
+ updated_unix: 1546869730 \ No newline at end of file