Skip to content

Commit

Permalink
Updated naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
duedares-rvj committed Aug 21, 2024
1 parent edbd934 commit dd19483
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 56 deletions.
6 changes: 3 additions & 3 deletions management/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ type Client struct {
// RequireProofOfPossession Makes the use of Proof-of-Possession mandatory for this client (default: false).
RequireProofOfPossession *bool `json:"require_proof_of_possession,omitempty"`

DefaultOrganization *DefaultOrganization `json:"default_organization,omitempty"`
DefaultOrganization *ClientDefaultOrganization `json:"default_organization,omitempty"`
}

// DefaultOrganization allows the support for client credentials feature.
type DefaultOrganization struct {
// ClientDefaultOrganization allows the support for client credentials feature.
type ClientDefaultOrganization struct {
Flows *[]string `json:"flows,omitempty"`
OrganizationID *string `json:"organization_id,omitempty"`
}
Expand Down
44 changes: 22 additions & 22 deletions management/management.gen.go

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

56 changes: 28 additions & 28 deletions management/management.gen_test.go

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

6 changes: 3 additions & 3 deletions management/organization_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,9 @@ func TestOrganizationManager_ClientGrantsWithOrg(t *testing.T) {
Name: auth0.Stringf("Test Client (%s)", time.Now().Format(time.StampMilli)),
Description: auth0.String("This is just a test client."),
OrganizationUsage: auth0.String("allow"),
DefaultOrganization: &DefaultOrganization{
&[]string{"client_credentials"},
auth0.String(org.GetID()),
DefaultOrganization: &ClientDefaultOrganization{
Flows: &[]string{"client_credentials"},
OrganizationID: auth0.String(org.GetID()),
},
}
// Create a client that shall be used for testing.
Expand Down

0 comments on commit dd19483

Please sign in to comment.