mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-08 14:34:49 +09:00
Fix #34349 By the way, remove `(ctx *APIContext) HasAPIError() ` and `(ctx *APIContext) GetErrMsg()` because they do nothing, the error handling has been done in API's middeware The existing OAuth2 tests were not quite right, refactored them together
23 lines
821 B
YAML
23 lines
821 B
YAML
-
|
|
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: '["https://example.com"]'
|
|
created_unix: 1546869730
|
|
updated_unix: 1546869730
|
|
confidential_client: true
|
|
-
|
|
id: 2
|
|
uid: 2
|
|
name: "Test native app"
|
|
client_id: "ce5a1322-42a7-11ed-b878-0242ac120002"
|
|
client_secret: "$2a$10$UYRgUSgekzBp6hYe8pAdc.cgB4Gn06QRKsORUnIYTYQADs.YR/uvi" # bcrypt of "4MK8Na6R55smdCY0WuCCumZ6hjRPnGY5saWVRHHjJiA=
|
|
redirect_uris: '["http://127.0.0.1"]'
|
|
created_unix: 1546869730
|
|
updated_unix: 1546869730
|
|
confidential_client: false
|
|
|
|
# DO NOT add more test data in the fixtures, test case should prepare their own test data separately and clearly
|