diff --git a/selfservice/strategy/oidc/provider_config.go b/selfservice/strategy/oidc/provider_config.go index c238724bcd91..7b580f9bc10b 100644 --- a/selfservice/strategy/oidc/provider_config.go +++ b/selfservice/strategy/oidc/provider_config.go @@ -5,12 +5,11 @@ package oidc import ( "encoding/json" - "maps" "net/url" - "slices" "strings" "github.com/pkg/errors" + "golang.org/x/exp/maps" "github.com/ory/herodot" "github.com/ory/x/urlx" @@ -187,7 +186,7 @@ func (c ConfigurationCollection) Provider(id string, reg Dependencies) (Provider return f(&p, reg), nil } - return nil, errors.Errorf("provider type %s is not supported, supported are: %v", p.Provider, slices.Collect(maps.Keys(supportedProviders))) + return nil, errors.Errorf("provider type %s is not supported, supported are: %v", p.Provider, maps.Keys(supportedProviders)) } } return nil, errors.WithStack(herodot.ErrNotFound.WithReasonf(`OpenID Connect Provider "%s" is unknown or has not been configured`, id)) diff --git a/selfservice/strategy/oidc/strategy.go b/selfservice/strategy/oidc/strategy.go index e78846a6ea15..d799c9190dcd 100644 --- a/selfservice/strategy/oidc/strategy.go +++ b/selfservice/strategy/oidc/strategy.go @@ -7,7 +7,6 @@ import ( "bytes" "context" "encoding/json" - "maps" "net/http" "net/url" "path/filepath" @@ -21,6 +20,7 @@ import ( "github.com/tidwall/gjson" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/trace" + "golang.org/x/exp/maps" "golang.org/x/oauth2" "github.com/ory/herodot" @@ -432,7 +432,7 @@ func (s *Strategy) HandleCallback(w http.ResponseWriter, r *http.Request, ps htt return } - span.SetAttributes(attribute.StringSlice("claims", slices.Collect(maps.Keys(claims.RawClaims)))) + span.SetAttributes(attribute.StringSlice("claims", maps.Keys(claims.RawClaims))) switch a := req.(type) { case *login.Flow: