-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathconfig.go
More file actions
57 lines (52 loc) · 1.54 KB
/
config.go
File metadata and controls
57 lines (52 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1
package config
import (
"go.mondoo.com/cnquery/v11/providers-sdk/v1/inventory"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/plugin"
"go.mondoo.com/cnquery/v11/providers/okta/provider"
)
var Config = plugin.Provider{
Name: "okta",
ID: "go.mondoo.com/cnquery/v9/providers/okta",
Version: "11.0.103",
ConnectionTypes: []string{provider.ConnectionType},
Connectors: []plugin.Connector{
{
Name: "okta",
Use: "okta",
Short: "an Okta organization",
Long: `Use the okta provider to query resources in an Okta organization.
To query an Okta organization, you need the organization's domain and an API token to access that domain. To learn how, read https://mondoo.com/docs/cnquery/saas/okta/.
Examples:
cnquery shell okta -organization <okta-domain> -token <api-token>
cnspec scan okta -organization <okta-domain> -token <api-token>
`,
Discovery: []string{},
Flags: []plugin.Flag{
{
Long: "organization",
Type: plugin.FlagType_String,
Default: "",
Desc: "The domain of the Okta organization to scan",
},
{
Long: "token",
Type: plugin.FlagType_String,
Default: "",
Desc: "Access token for the Okta organization",
},
},
},
},
AssetUrlTrees: []*inventory.AssetUrlBranch{
{
PathSegments: []string{"technology=saas", "provider=okta"},
Key: "kind",
Title: "Kind",
Values: map[string]*inventory.AssetUrlBranch{
"org": nil,
},
},
},
}