fix: update saml to v0.0.11 (#5628)

* fix: update saml to v0.0.11

* chore: remove unused sum

---------

Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
This commit is contained in:
Stefan Benz
2023-04-11 09:39:12 +02:00
committed by GitHub
parent 1e63c2eea3
commit 440ba9f5ef
5 changed files with 7 additions and 9 deletions

View File

@@ -1,7 +1,6 @@
package saml
import (
"context"
"fmt"
"net/http"
@@ -29,7 +28,6 @@ type Config struct {
}
func NewProvider(
ctx context.Context,
conf Config,
externalSecure bool,
command *command.Commands,
@@ -68,13 +66,13 @@ func NewProvider(
accessHandler,
http_utils.CopyHeadersToContext,
),
provider.WithCustomTimeFormat("2006-01-02T15:04:05.999Z"),
}
if !externalSecure {
options = append(options, provider.WithAllowInsecure())
}
return provider.NewProvider(
ctx,
provStorage,
HandlerPrefix,
conf.ProviderConfig,