Skip to content

Commit

Permalink
Quick change
Browse files Browse the repository at this point in the history
  • Loading branch information
mchavez committed Mar 29, 2024
1 parent 3d56412 commit a05d1d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/connector/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func New(ctx context.Context, config map[string]any) (*Okta, error) {

apiToken, _ := config["ApiToken"].(string)
domain, _ := config["Domain"].(string)
oktaClientId, _ := config["OktaClientId"].(string)
syncInactiveApps, _ := config["SyncInactiveApps"].(bool)
if apiToken != "" && domain != "" {
_, oktaClient, err = okta.NewClient(ctx,
okta.WithOrgUrl(fmt.Sprintf("https://%s", domain)),
Expand All @@ -150,7 +150,7 @@ func New(ctx context.Context, config map[string]any) (*Okta, error) {
}

oktaPrivateKey, _ := config["OktaPrivateKey"].(string)
syncInactiveApps, _ := config["SyncInactiveApps"].(bool)
oktaClientId, _ := config["OktaClientId"].(string)
if oktaClientId != "" && oktaPrivateKey != "" && domain != "" {
_, oktaClient, err = okta.NewClient(ctx,
okta.WithOrgUrl(fmt.Sprintf("https://%s", domain)),
Expand Down

0 comments on commit a05d1d4

Please sign in to comment.