diff --git a/schema/config.schema.json b/schema/config.schema.json index 552c93e8..b56aae54 100644 --- a/schema/config.schema.json +++ b/schema/config.schema.json @@ -125,7 +125,8 @@ "apikey", "oauthwebapp", "oauthnativeapp", - "oauthsinglepageapp" + "oauthsinglepageapp", + "oauth_server_to_server" ] }, "jwt": { "$ref": "#/definitions/jwt" }, @@ -138,7 +139,9 @@ "oneOf": [ { "required": ["oauth2"] }, { "required": ["jwt"] }, - { "required": ["api_key"] } + { "required": ["api_key"] }, + { "required": ["oauth_server_to_server"] } + ] }, "service": { @@ -176,6 +179,26 @@ }, "required": [ "client_id", "client_secret", "redirect_uri", "defaultRedirectUri" ] }, + "oauth_server_to_server": { + "properties": { + "client_id": { "type": "string" }, + "client_secrets": { "type": "array" }, + "technical_account_email": { + "type": "string", + "format": "email" + }, + "technical_account_id": { + "type": "string", + "format": "email" + }, + "scopes": { + "type": "array", + "items": { "type": "string" }, + "default": [] + } + }, + "required": [ "client_id", "client_secrets", "technical_account_email", "technical_account_id", "scopes" ] + }, "oauthsinglepageapp": { "type": "object", "properties": {