|
@@ -65,11 +65,13 @@ const validator = {
|
|
|
body('isSameUsernameTreatedAsIdenticalUser').isBoolean(),
|
|
body('isSameUsernameTreatedAsIdenticalUser').isBoolean(),
|
|
|
],
|
|
],
|
|
|
githubOAuth: [
|
|
githubOAuth: [
|
|
|
|
|
+ body('isGithubOAuthEnabled').isBoolean(),
|
|
|
body('githubClientId').isString(),
|
|
body('githubClientId').isString(),
|
|
|
body('githubClientSecret').isString(),
|
|
body('githubClientSecret').isString(),
|
|
|
body('isSameUsernameTreatedAsIdenticalUser').isBoolean(),
|
|
body('isSameUsernameTreatedAsIdenticalUser').isBoolean(),
|
|
|
],
|
|
],
|
|
|
twitterOAuth: [
|
|
twitterOAuth: [
|
|
|
|
|
+ body('isTwitterOAuthEnabled').isBoolean(),
|
|
|
body('twitterConsumerKey').isString(),
|
|
body('twitterConsumerKey').isString(),
|
|
|
body('twitterConsumerSecret').isString(),
|
|
body('twitterConsumerSecret').isString(),
|
|
|
body('isSameUsernameTreatedAsIdenticalUser').isBoolean(),
|
|
body('isSameUsernameTreatedAsIdenticalUser').isBoolean(),
|
|
@@ -231,6 +233,9 @@ const validator = {
|
|
|
* description: local account automatically linked the email matched
|
|
* description: local account automatically linked the email matched
|
|
|
* GoogleOAuthSetting:
|
|
* GoogleOAuthSetting:
|
|
|
* type:object
|
|
* type:object
|
|
|
|
|
+ * isGithubOAuthEnabled:
|
|
|
|
|
+ * type: boolean
|
|
|
|
|
+ * description: whether to enable github oauth
|
|
|
* googleClientId:
|
|
* googleClientId:
|
|
|
* type: string
|
|
* type: string
|
|
|
* description: key of comsumer
|
|
* description: key of comsumer
|
|
@@ -241,6 +246,9 @@ const validator = {
|
|
|
* type: boolean
|
|
* type: boolean
|
|
|
* description: local account automatically linked the email matched
|
|
* description: local account automatically linked the email matched
|
|
|
* TwitterOAuthSetting:
|
|
* TwitterOAuthSetting:
|
|
|
|
|
+ * isTwitterOAuthEnabled:
|
|
|
|
|
+ * type: boolean
|
|
|
|
|
+ * description: whether to enable twitter oauth
|
|
|
* type:object
|
|
* type:object
|
|
|
* twitterConsumerKey:
|
|
* twitterConsumerKey:
|
|
|
* type: string
|
|
* type: string
|