Skip to content

Commit e340b33

Browse files
Updating baton config schema and capabilities.
1 parent 623c507 commit e340b33

File tree

2 files changed

+136
-30
lines changed

2 files changed

+136
-30
lines changed

baton_capabilities.json

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
11
{
2-
"@type": "type.googleapis.com/c1.connector.v2.ConnectorCapabilities",
3-
"resourceTypeCapabilities": [
2+
"@type": "type.googleapis.com/c1.connector.v2.ConnectorCapabilities",
3+
"resourceTypeCapabilities": [
44
{
5-
"resourceType": {
6-
"id": "app",
7-
"displayName": "App",
8-
"traits": [
5+
"resourceType": {
6+
"id": "app",
7+
"displayName": "App",
8+
"traits": [
99
"TRAIT_APP"
1010
]
1111
},
12-
"capabilities": [
12+
"capabilities": [
1313
"CAPABILITY_SYNC"
1414
],
15-
"permissions": {}
15+
"permissions": {}
1616
},
1717
{
18-
"resourceType": {
19-
"id": "group",
20-
"displayName": "Group",
21-
"traits": [
18+
"resourceType": {
19+
"id": "group",
20+
"displayName": "Group",
21+
"traits": [
2222
"TRAIT_GROUP"
2323
]
2424
},
25-
"capabilities": [
25+
"capabilities": [
2626
"CAPABILITY_SYNC"
2727
],
28-
"permissions": {}
28+
"permissions": {}
2929
},
3030
{
31-
"resourceType": {
32-
"id": "role",
33-
"displayName": "Role",
34-
"traits": [
31+
"resourceType": {
32+
"id": "role",
33+
"displayName": "Role",
34+
"traits": [
3535
"TRAIT_ROLE"
3636
]
3737
},
38-
"capabilities": [
38+
"capabilities": [
3939
"CAPABILITY_SYNC",
4040
"CAPABILITY_PROVISION"
4141
],
42-
"permissions": {}
42+
"permissions": {}
4343
},
4444
{
45-
"resourceType": {
46-
"id": "user",
47-
"displayName": "User",
48-
"traits": [
45+
"resourceType": {
46+
"id": "user",
47+
"displayName": "User",
48+
"traits": [
4949
"TRAIT_USER"
5050
],
51-
"annotations": [
51+
"annotations": [
5252
{
53-
"@type": "type.googleapis.com/c1.connector.v2.SkipEntitlementsAndGrants"
53+
"@type": "type.googleapis.com/c1.connector.v2.SkipEntitlementsAndGrants"
5454
}
5555
]
5656
},
57-
"capabilities": [
57+
"capabilities": [
5858
"CAPABILITY_SYNC"
5959
],
60-
"permissions": {}
60+
"permissions": {}
6161
}
6262
],
63-
"connectorCapabilities": [
63+
"connectorCapabilities": [
6464
"CAPABILITY_PROVISION",
6565
"CAPABILITY_SYNC"
6666
],
67-
"credentialDetails": {}
67+
"credentialDetails": {}
6868
}

config_schema.json

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
{
2+
"fields": [
3+
{
4+
"name": "log-level",
5+
"description": "The log level: debug, info, warn, error",
6+
"isOps": true,
7+
"stringField": {
8+
"defaultValue": "info"
9+
}
10+
},
11+
{
12+
"name": "log-level-debug-expires-at",
13+
"description": "The timestamp indicating when debug-level logging should expire",
14+
"isOps": true,
15+
"stringField": {}
16+
},
17+
{
18+
"name": "onelogin-client-id",
19+
"displayName": "Client ID",
20+
"description": "OneLogin client ID used to generate the access token.",
21+
"isRequired": true,
22+
"stringField": {
23+
"rules": {
24+
"isRequired": true
25+
}
26+
}
27+
},
28+
{
29+
"name": "onelogin-client-secret",
30+
"displayName": "Client Secret",
31+
"description": "OneLogin client secret used to generate the access token",
32+
"isRequired": true,
33+
"isSecret": true,
34+
"stringField": {
35+
"rules": {
36+
"isRequired": true
37+
}
38+
}
39+
},
40+
{
41+
"name": "otel-collector-endpoint",
42+
"description": "The endpoint of the OpenTelemetry collector to send observability data to (used for both tracing and logging if specific endpoints are not provided)",
43+
"isOps": true,
44+
"stringField": {}
45+
},
46+
{
47+
"name": "otel-collector-endpoint-tls-cert",
48+
"description": "A PEM-encoded certificate to use as a CA for TLS connections to the OpenTelemetry collector",
49+
"isOps": true,
50+
"stringField": {}
51+
},
52+
{
53+
"name": "otel-collector-endpoint-tls-cert-path",
54+
"description": "Path to a file containing a PEM-encoded certificate to use as a CA for TLS connections to the OpenTelemetry collector",
55+
"isOps": true,
56+
"stringField": {}
57+
},
58+
{
59+
"name": "otel-collector-endpoint-tls-insecure",
60+
"description": "Allow insecure connections to the OpenTelemetry collector",
61+
"isOps": true,
62+
"boolField": {}
63+
},
64+
{
65+
"name": "otel-logging-disabled",
66+
"description": "Disable OpenTelemetry logging",
67+
"isOps": true,
68+
"boolField": {}
69+
},
70+
{
71+
"name": "otel-tracing-disabled",
72+
"description": "Disable OpenTelemetry tracing",
73+
"isOps": true,
74+
"boolField": {}
75+
},
76+
{
77+
"name": "privileges-enabled",
78+
"displayName": "Enable Privileges sync",
79+
"description": "Enable syncing of privileges from OneLogin. Requires OneLogin subscription to have access to privileges.",
80+
"boolField": {}
81+
},
82+
{
83+
"name": "session-store-maximum-size",
84+
"description": "The maximum size of the local in-memory session store cache in bytes.",
85+
"isOps": true,
86+
"intField": {
87+
"defaultValue": "15728640"
88+
}
89+
},
90+
{
91+
"name": "subdomain",
92+
"displayName": "One Login Subdomain",
93+
"description": "OneLogin subdomain to connect to",
94+
"isRequired": true,
95+
"isSecret": true,
96+
"stringField": {
97+
"rules": {
98+
"isRequired": true
99+
}
100+
}
101+
}
102+
],
103+
"displayName": "OneLogin",
104+
"helpUrl": "/docs/baton/onelogin-v2",
105+
"iconUrl": "/static/app-icons/onelogin.svg"
106+
}

0 commit comments

Comments
 (0)