Skip to content

Commit

Permalink
fix: build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik committed Nov 25, 2024
1 parent 05f911d commit 089d704
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions selfservice/strategy/oidc/provider_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions selfservice/strategy/oidc/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"bytes"
"context"
"encoding/json"
"maps"
"net/http"
"net/url"
"path/filepath"
Expand All @@ -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"
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 089d704

Please sign in to comment.