Skip to content

Commit

Permalink
chore: update OpenID 2.0 login strategy to match updated login strate…
Browse files Browse the repository at this point in the history
…gy interface
  • Loading branch information
tbureck committed Feb 17, 2024
1 parent fd0e69a commit f0ce271
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions selfservice/strategy/oid2/strategy_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package oid2

import (
"context"
"github.com/gofrs/uuid"
"github.com/ory/kratos/identity"
"github.com/ory/kratos/selfservice/flow/login"
"github.com/ory/kratos/session"
Expand All @@ -22,11 +21,11 @@ func (s *Strategy) PopulateLoginMethod(r *http.Request, requestedAAL identity.Au
return nil
}

func (s *Strategy) Login(w http.ResponseWriter, r *http.Request, f *login.Flow, identityID uuid.UUID) (i *identity.Identity, err error) {
func (s *Strategy) Login(w http.ResponseWriter, r *http.Request, f *login.Flow, sess *session.Session) (i *identity.Identity, err error) {
return nil, nil
}

func (s *Strategy) CompletedAuthenticationMethod(ctx context.Context) session.AuthenticationMethod {
func (s *Strategy) CompletedAuthenticationMethod(ctx context.Context, methods session.AuthenticationMethods) session.AuthenticationMethod {
return session.AuthenticationMethod{
Method: s.ID(),
AAL: identity.AuthenticatorAssuranceLevel1,
Expand Down

0 comments on commit f0ce271

Please sign in to comment.