Skip to content

Commit

Permalink
rename idps -> identityProviders
Browse files Browse the repository at this point in the history
  • Loading branch information
slntopp committed Nov 8, 2024
1 parent 20a50e9 commit b5627f7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions providers/cloudflare/resources/cloudflare.lr
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ private cloudflare.workers.page {

private cloudflare.one {
apps() []cloudflare.one.app // Cloudflare Zero Trust applications
idps() []cloudflare.one.idp // Identity providers
identityProviders() []cloudflare.one.idp // Identity providers
}

// Cloudflare One application
Expand All @@ -280,7 +280,7 @@ private cloudflare.one.app @defaults("name id") {
name string // Name of the application
domain string // Domain of the application

allowedIdps []string // Allowed identity providers
allowedIdentityProviders []string // Allowed identity providers
appLauncherVisible bool // Whether the application displays in the App Launcher
autoRedirectToIdentity bool // Whether users skip the identity provider selection step during login

Expand Down
32 changes: 16 additions & 16 deletions providers/cloudflare/resources/cloudflare.lr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions providers/cloudflare/resources/cloudflare.lr.manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ resources:
cloudflare.one:
fields:
apps: {}
idps: {}
identityProviders: {}
is_private: true
min_mondoo_version: 9.0.0
cloudflare.one.app:
fields:
allowedIdps: {}
allowedIdentityProviders: {}
appLauncherVisible: {}
aud: {}
autoRedirectToIdentity: {}
Expand Down
4 changes: 2 additions & 2 deletions providers/cloudflare/resources/cloudflare_one.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (c *mqlCloudflareOne) apps() ([]any, error) {
"name": llx.StringData(rec.Name),
"domain": llx.StringData(rec.Domain),

"allowedIdps": llx.ArrayData(convert.SliceAnyToInterface(rec.AllowedIdps), types.String),
"allowedIdentityProviders": llx.ArrayData(convert.SliceAnyToInterface(rec.AllowedIdps), types.String),

"appLauncherVisible": llx.BoolData(*rec.AppLauncherVisible),
"autoRedirectToIdentity": llx.BoolData(*rec.AutoRedirectToIdentity),
Expand Down Expand Up @@ -132,7 +132,7 @@ func (c *mqlCloudflareOneIdp) id() (string, error) {
return c.Id.Data, nil
}

func (c *mqlCloudflareOne) idps() ([]any, error) {
func (c *mqlCloudflareOne) identityProviders() ([]any, error) {
conn := c.MqlRuntime.Connection.(*connection.CloudflareConnection)

cursor := &cloudflare.ResultInfo{}
Expand Down

0 comments on commit b5627f7

Please sign in to comment.