Skip to content

Commit

Permalink
fix: linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hperl committed Oct 26, 2023
1 parent 070aecf commit 39b7bb6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
3 changes: 1 addition & 2 deletions selfservice/flow/continue_with.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ type ContinueWith any
// swagger:enum ContinueWithActionSetOrySessionToken
type ContinueWithActionSetOrySessionToken string

// #nosec G101 -- only a key constant
const (
ContinueWithActionSetOrySessionTokenString ContinueWithActionSetOrySessionToken = "set_ory_session_token"
ContinueWithActionSetOrySessionTokenString ContinueWithActionSetOrySessionToken = "set_ory_session_token" // #nosec G101 -- only a key constant
)

var _ ContinueWith = new(ContinueWithSetOrySessionToken)
Expand Down
12 changes: 0 additions & 12 deletions selfservice/flow/login/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ package login

import (
"context"
"encoding/json"
"fmt"
"net/http"
"time"

"github.com/gofrs/uuid"
"github.com/pkg/errors"
"github.com/tidwall/gjson"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/trace"

Expand Down Expand Up @@ -364,16 +362,6 @@ func (e *HookExecutor) maybeLinkCredentials(r *http.Request, s *session.Session,
return nil
}

func (e *HookExecutor) getInternalContextLinkCredentials(f *Flow, internalContextPath string, lc *flow.RegistrationDuplicateCredentials) error {
internalContextLinkCredentials := gjson.GetBytes(f.InternalContext, internalContextPath)
if internalContextLinkCredentials.IsObject() {
if err := json.Unmarshal([]byte(internalContextLinkCredentials.Raw), lc); err != nil {
return err
}
}
return nil
}

func (e *HookExecutor) checkDuplicateCredentialsIdentifierMatch(ctx context.Context, identityID uuid.UUID, match string) error {
i, err := e.d.PrivilegedIdentityPool().GetIdentityConfidential(ctx, identityID)
if err != nil {
Expand Down

0 comments on commit 39b7bb6

Please sign in to comment.