diff --git a/cmd/api/src/model/samlprovider.go b/cmd/api/src/model/samlprovider.go index 480e9b002f..6cffc17bdc 100644 --- a/cmd/api/src/model/samlprovider.go +++ b/cmd/api/src/model/samlprovider.go @@ -46,7 +46,7 @@ var ( SAMLRootURIVersion1 SAMLRootURIVersion = 1 SAMLRootURIVersion2 SAMLRootURIVersion = 2 - SAMLRootURIVersionMap = map[SAMLRootURIVersion]string { + SAMLRootURIVersionMap = map[SAMLRootURIVersion]string{ SAMLRootURIVersion1: "/api/v1/login/saml", SAMLRootURIVersion2: "/api/v2/sso", } @@ -147,7 +147,7 @@ func (s SAMLProvider) GetSAMLUserPrincipalNameFromAssertion(assertion *saml.Asse func (s *SAMLProvider) FormatSAMLProviderURLs(hostUrl url.URL) { root := hostUrl - root.Path = path.Join(SAMLRootURIVersionMap[s.RootURIVersion], s.Name) + root.Path = path.Join(SAMLRootURIVersionMap[s.RootURIVersion], s.Name) // To preserve existing IDP configurations, existing saml providers still use the old acs endpoint which redirects to the new callback handler switch s.RootURIVersion { diff --git a/packages/go/analysis/post_integration_test.go b/packages/go/analysis/post_integration_test.go index a82d81be37..426e7b5981 100644 --- a/packages/go/analysis/post_integration_test.go +++ b/packages/go/analysis/post_integration_test.go @@ -1,3 +1,19 @@ +// Copyright 2024 Specter Ops, Inc. +// +// Licensed under the Apache License, Version 2.0 +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// SPDX-License-Identifier: Apache-2.0 + //go:build serial_integration // +build serial_integration diff --git a/packages/go/graphschema/ad/ad.go b/packages/go/graphschema/ad/ad.go index 4a948558ff..5dad6bea8d 100644 --- a/packages/go/graphschema/ad/ad.go +++ b/packages/go/graphschema/ad/ad.go @@ -21,6 +21,7 @@ package ad import ( "errors" + graph "github.com/specterops/bloodhound/dawgs/graph" ) diff --git a/packages/go/graphschema/azure/azure.go b/packages/go/graphschema/azure/azure.go index 00b20f190f..787ee392e6 100644 --- a/packages/go/graphschema/azure/azure.go +++ b/packages/go/graphschema/azure/azure.go @@ -21,6 +21,7 @@ package azure import ( "errors" + graph "github.com/specterops/bloodhound/dawgs/graph" ) diff --git a/packages/go/graphschema/common/common.go b/packages/go/graphschema/common/common.go index 631871c6bf..73edf123fa 100644 --- a/packages/go/graphschema/common/common.go +++ b/packages/go/graphschema/common/common.go @@ -21,6 +21,7 @@ package common import ( "errors" + graph "github.com/specterops/bloodhound/dawgs/graph" )