Skip to content

Commit

Permalink
Add strategy_version to other connections that use it
Browse files Browse the repository at this point in the history
  • Loading branch information
acwest committed Sep 17, 2024
1 parent 5b0aac1 commit 6369fbe
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 0 deletions.
12 changes: 12 additions & 0 deletions management/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,10 @@ type ConnectionOptionsOAuth2 struct {
// ClientSecret is the OAuth2 client secret.
ClientSecret *string `json:"client_secret,omitempty"`

// StrategyVersion is used when there are different versions of the strategy
// that may be used. Paypal mey require it, for example.
StrategyVersion *int `json:"strategy_version,omitempty"`

// AuthorizationURL is the URL used for obtaining authorization from the user.
AuthorizationURL *string `json:"authorizationURL"`

Expand Down Expand Up @@ -1207,6 +1211,8 @@ func (c *ConnectionOptionsOAuth2) SetScopes(enable bool, scopes ...string) {

// ConnectionOptionsAD is used to configure an AD Connection.
type ConnectionOptionsAD struct {
StrategyVersion *int `json:"strategy_version,omitempty"`

TenantDomain *string `json:"tenant_domain,omitempty"`
DomainAliases *[]string `json:"domain_aliases,omitempty"`
LogoURL *string `json:"icon_url,omitempty"`
Expand All @@ -1233,6 +1239,8 @@ type ConnectionOptionsAzureAD struct {
ClientID *string `json:"client_id,omitempty"`
ClientSecret *string `json:"client_secret,omitempty"`

StrategyVersion *int `json:"strategy_version,omitempty"`

AppID *string `json:"app_id,omitempty"`
TenantDomain *string `json:"tenant_domain,omitempty"`
Domain *string `json:"domain,omitempty"`
Expand Down Expand Up @@ -1283,6 +1291,8 @@ func (c *ConnectionOptionsAzureAD) SetScopes(enable bool, scopes ...string) {

// ConnectionOptionsADFS is used to configure an ADFS Connection.
type ConnectionOptionsADFS struct {
StrategyVersion *int `json:"strategy_version,omitempty"`

TenantDomain *string `json:"tenant_domain,omitempty"`
DomainAliases *[]string `json:"domain_aliases,omitempty"`
LogoURL *string `json:"icon_url,omitempty"`
Expand Down Expand Up @@ -1363,6 +1373,8 @@ func (c *ConnectionOptionsPingFederate) SetScopes(enable bool, scopes ...string)

// ConnectionOptionsSAML is used to configure a SAML Connection.
type ConnectionOptionsSAML struct {
StrategyVersion *int `json:"strategy_version,omitempty"`

Cert *string `json:"cert,omitempty"`
Debug *bool `json:"debug,omitempty"`
Expires *string `json:"expires,omitempty"`
Expand Down
40 changes: 40 additions & 0 deletions management/management.gen.go

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

50 changes: 50 additions & 0 deletions management/management.gen_test.go

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

0 comments on commit 6369fbe

Please sign in to comment.