Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--domain not working correctly #2924

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
6 changes: 6 additions & 0 deletions cli/packages/cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ func handleUniversalAuthLogin(cmd *cobra.Command, infisicalClient infisicalSdk.I
return infisicalSdk.MachineIdentityCredential{}, err
}

// Update the infisicalClient with the domain flag
domain, err := cmd.Flags().GetString("domain")
if err == nil && domain != "" {
infisicalClient.SetSiteUrl(domain)
}

return infisicalClient.Auth().UniversalAuthLogin(clientId, clientSecret)
}

Expand Down
1 change: 1 addition & 0 deletions cli/packages/util/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import (
"time"

"github.com/Infisical/infisical-merge/packages/api"
"github.com/Infisical/infisical-merge/packages/config"
"github.com/Infisical/infisical-merge/packages/models"
"github.com/go-resty/resty/v2"
"github.com/spf13/cobra"
Expand Down