mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Integrate OAuth2 Provider (#5378)
This commit is contained in:
committed by
techknowlogick
parent
9d3732dfd5
commit
e777c6bdc6
9
models/fixtures/oauth2_application.yml
Normal file
9
models/fixtures/oauth2_application.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
-
|
||||
id: 1
|
||||
uid: 1
|
||||
name: "Test"
|
||||
client_id: "da7da3ba-9a13-4167-856f-3899de0b0138"
|
||||
client_secret: "$2a$10$UYRgUSgekzBp6hYe8pAdc.cgB4Gn06QRKsORUnIYTYQADs.YR/uvi" # bcrypt of "4MK8Na6R55smdCY0WuCCumZ6hjRPnGY5saWVRHHjJiA=
|
||||
redirect_uris: '["a"]'
|
||||
created_unix: 1546869730
|
||||
updated_unix: 1546869730
|
8
models/fixtures/oauth2_authorization_code.yml
Normal file
8
models/fixtures/oauth2_authorization_code.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
- id: 1
|
||||
grant_id: 1
|
||||
code: "authcode"
|
||||
code_challenge: "CjvyTLSdR47G5zYenDA-eDWW4lRrO8yvjcWwbD_deOg" # Code Verifier: N1Zo9-8Rfwhkt68r1r29ty8YwIraXR8eh_1Qwxg7yQXsonBt
|
||||
code_challenge_method: "S256"
|
||||
redirect_uri: "a"
|
||||
valid_until: 3546869730
|
||||
|
6
models/fixtures/oauth2_grant.yml
Normal file
6
models/fixtures/oauth2_grant.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
- id: 1
|
||||
user_id: 1
|
||||
application_id: 1
|
||||
counter: 1
|
||||
created_unix: 1546869730
|
||||
updated_unix: 1546869730
|
Reference in New Issue
Block a user