We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34bade9 commit a10c4a5Copy full SHA for a10c4a5
internal/pkg/auth/utils.go
@@ -14,10 +14,10 @@ func getIDPEndpoint() (string, error) {
14
customIDPEndpoint := viper.GetString(config.IdentityProviderCustomEndpointKey)
15
if customIDPEndpoint != "" {
16
idpEndpoint = customIDPEndpoint
17
- }
18
- err := utils.ValidateURLDomain(idpEndpoint)
19
- if err != nil {
20
- return "", fmt.Errorf("validate custom identity provider endpoint: %w", err)
+ err := utils.ValidateURLDomain(idpEndpoint)
+ if err != nil {
+ return "", fmt.Errorf("validate custom identity provider endpoint: %w", err)
+ }
21
}
22
23
return idpEndpoint, nil
0 commit comments