diff --git a/saml/sp.go b/saml/sp.go index fd8815e..4b38b23 100644 --- a/saml/sp.go +++ b/saml/sp.go @@ -67,6 +67,7 @@ func WithACSServiceBinding(b core.ServiceBinding) Option { } // WithAdditionalACSEndpoint provides an optional additional ACS endpoint +func WithAdditionalACSEndpoint(b core.ServiceBinding, location url.URL) Option { return func(o interface{}) { if o, ok := o.(*metadataOptions); ok { o.additionalACSs = append(o.additionalACSs, metadata.Endpoint{ diff --git a/saml/sp_test.go b/saml/sp_test.go index 8e8bb29..f27939b 100644 --- a/saml/sp_test.go +++ b/saml/sp_test.go @@ -254,7 +254,7 @@ func Test_CreateMetadata_Options(t *testing.T) { got := provider.CreateMetadata( saml.WithAdditionalACSEndpoint( core.ServiceBindingHTTPRedirect, - redirectEndpoint, + *redirectEndpoint, ), )