Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions pkg/fusionauth/Domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,7 @@ type BaseIdentityProvider struct {
LastUpdateInstant int64 `json:"lastUpdateInstant,omitempty"`
LinkingStrategy IdentityProviderLinkingStrategy `json:"linkingStrategy,omitempty"`
Name string `json:"name,omitempty"`
Source IdentityProviderSource `json:"source,omitempty"`
TenantConfiguration map[string]IdentityProviderTenantConfiguration `json:"tenantConfiguration,omitempty"`
TenantId string `json:"tenantId,omitempty"`
Type IdentityProviderType `json:"type,omitempty"`
Expand Down Expand Up @@ -3377,10 +3378,11 @@ func (b *IdentityProviderResponse) SetStatus(status int) {
*/
type IdentityProviderSearchCriteria struct {
BaseSearchCriteria
ApplicationId string `json:"applicationId,omitempty"`
Name string `json:"name,omitempty"`
TenantId string `json:"tenantId,omitempty"`
Type IdentityProviderType `json:"type,omitempty"`
ApplicationId string `json:"applicationId,omitempty"`
Name string `json:"name,omitempty"`
Source IdentityProviderSource `json:"source,omitempty"`
TenantId string `json:"tenantId,omitempty"`
Type IdentityProviderType `json:"type,omitempty"`
}

/**
Expand All @@ -3407,6 +3409,20 @@ func (b *IdentityProviderSearchResponse) SetStatus(status int) {
b.StatusCode = status
}

/**
* The source of an identity provider configuration.
*/
type IdentityProviderSource string

func (e IdentityProviderSource) String() string {
return string(e)
}

const (
IdentityProviderSource_System IdentityProviderSource = "System"
IdentityProviderSource_TenantManager IdentityProviderSource = "TenantManager"
)

/**
* @author Daniel DeGroff
*/
Expand Down
7 changes: 7 additions & 0 deletions pkg/fusionauth/Domain_dynamic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,13 @@ func Test_ClientAuthenticationMethodImplementsStringer(t *testing.T) {
}
}

func Test_IdentityProviderSourceImplementsStringer(t *testing.T) {
var enum interface{} = IdentityProviderSource("Test")
if _, ok := enum.(fmt.Stringer); !ok {
t.Errorf("IdentityProviderSource does not implement stringer interface\n")
}
}

func Test_IdentityProviderTypeImplementsStringer(t *testing.T) {
var enum interface{} = IdentityProviderType("Test")
if _, ok := enum.(fmt.Stringer); !ok {
Expand Down