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

remove org domain validation #103

Merged
merged 1 commit into from
May 4, 2023
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
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ require (
github.com/logrusorgru/aurora v2.0.3+incompatible
github.com/mattn/go-isatty v0.0.16
github.com/mdp/qrterminal v1.0.1
github.com/ompluscator/dynamic-struct v1.4.0
github.com/pkg/errors v0.9.1
github.com/spf13/cobra v1.5.0
github.com/spf13/viper v1.14.0
Expand All @@ -17,10 +18,9 @@ require (
golang.org/x/net v0.7.0
golang.org/x/sys v0.5.0
gopkg.in/ini.v1 v1.67.0
gopkg.in/yaml.v2 v2.4.0
)

require github.com/ompluscator/dynamic-struct v1.4.0 // indirect

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
Expand All @@ -43,7 +43,6 @@ require (
github.com/subosito/gotenv v1.4.2 // indirect
golang.org/x/term v0.5.0 // indirect
golang.org/x/text v0.7.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
rsc.io/qr v0.2.0 // indirect
)
3 changes: 0 additions & 3 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,6 @@ func (c *Config) SetOrgDomain(domain string) error {
if domain == "" {
return NewValidationError(OrgDomainMsg, CannotBeBlankErrMsg)
}
if !(strings.Contains(domain, "okta.com") || strings.Contains(domain, "oktapreview.com")) {
return NewValidationError(OrgDomainMsg, "is not from Okta")
}
c.orgDomain = domain
return nil
}
Expand Down