Skip to content

Commit

Permalink
minor data structure update
Browse files Browse the repository at this point in the history
  • Loading branch information
duedares-rvj committed Nov 11, 2024
1 parent a0cf7a0 commit 5387e0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions management/self_service_profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type SelfServiceProfile struct {

// List of IdP strategies that will be shown to users during the Self-Service SSO flow.
// Possible values: [oidc, samlp, waad, google-apps, adfs, okta, keycloak-samlp]
AllowedStrategies []*string `json:"allowed_strategies,omitempty"`
AllowedStrategies *[]string `json:"allowed_strategies,omitempty"`

// List of attributes to be mapped that
// will be shown to the user during the SS-SSO flow.
Expand Down Expand Up @@ -61,7 +61,7 @@ type SelfServiceProfileTicket struct {

// List of client_ids that the
// connection will be enabled for.
EnabledClients []*string `json:"enabled_clients,omitempty"`
EnabledClients *[]string `json:"enabled_clients,omitempty"`

// List of organizations that the
// connection will be enabled for.
Expand Down Expand Up @@ -92,7 +92,7 @@ type SelfServiceProfileTicketConnectionConfig struct {
// SelfServiceProfileTicketConnectionConfigOptions is the list of Options for SSO Ticket.
type SelfServiceProfileTicketConnectionConfigOptions struct {
IconURL *string `json:"icon_url,omitempty"`
DomainAliases []*string `json:"domain_aliases,omitempty"`
DomainAliases *[]string `json:"domain_aliases,omitempty"`
}

// SelfServiceProfileTicketEnabledOrganizations is the list of Organizations associated with the SSO Ticket.
Expand All @@ -108,7 +108,7 @@ func (ssp *SelfServiceProfile) MarshalJSON() ([]byte, error) {
type SelfServiceProfileSubset struct {
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
AllowedStrategies []*string `json:"allowed_strategies,omitempty"`
AllowedStrategies *[]string `json:"allowed_strategies,omitempty"`
UserAttributes []*SelfServiceProfileUserAttributes `json:"user_attributes,omitempty"`
Branding *Branding `json:"branding,omitempty"`
}
Expand Down
8 changes: 4 additions & 4 deletions management/self_service_profiles_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestSelfServiceProfileManager_Create(t *testing.T) {
ssop := &SelfServiceProfile{
Name: auth0.String("Sample Self Service Profile"),
Description: auth0.String("Sample Desc"),
AllowedStrategies: []*string{auth0.String("oidc")},
AllowedStrategies: &[]string{"oidc"},
Branding: &Branding{
LogoURL: auth0.String("https://example.com/logo.png"),
Colors: &BrandingColors{
Expand Down Expand Up @@ -127,10 +127,10 @@ func TestSelfServiceProfileManager_CreateAndRevokeTicket(t *testing.T) {
},
Options: &SelfServiceProfileTicketConnectionConfigOptions{
IconURL: auth0.String("https://metabox.com/my_icon.jpeg"),
DomainAliases: []*string{auth0.String("okta.com")},
DomainAliases: &[]string{"okta.com"},
},
},
EnabledClients: []*string{auth0.String(client.GetClientID())},
EnabledClients: &[]string{client.GetClientID()},
EnabledOrganizations: []*SelfServiceProfileTicketEnabledOrganizations{
{
AssignMembershipOnLogin: auth0.Bool(true),
Expand Down Expand Up @@ -185,7 +185,7 @@ func givenASelfServiceProfile(t *testing.T) *SelfServiceProfile {
ssop := &SelfServiceProfile{
Name: auth0.String("Sample Self Service Profile"),
Description: auth0.String("Sample Desc"),
AllowedStrategies: []*string{auth0.String("oidc")},
AllowedStrategies: &[]string{"oidc"},
Branding: &Branding{
LogoURL: auth0.String("https://example.com/logo.png"),
Colors: &BrandingColors{
Expand Down

0 comments on commit 5387e0c

Please sign in to comment.