Skip to content

Commit

Permalink
fix import for totp testing (#3)
Browse files Browse the repository at this point in the history
* fix import for totp testing

Signed-off-by: Sarah Funkhouser <[email protected]>

* fix all the imports

Signed-off-by: Sarah Funkhouser <[email protected]>

---------

Signed-off-by: Sarah Funkhouser <[email protected]>
  • Loading branch information
golanglemonade authored Aug 27, 2024
1 parent 8d0d86f commit 2216eb9
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions providers/github/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/google/go-github/v63/github"
"golang.org/x/oauth2"

oauth2Login "github.com/theopenlane/core/pkg/providers/oauth2"
"github.com/theopenlane/core/pkg/sessions"
oauth2Login "github.com/theopenlane/iam/providers/oauth2"
"github.com/theopenlane/iam/sessions"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion providers/github/login_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"net/http/httptest"
"testing"

oauth2Login "github.com/theopenlane/core/pkg/providers/oauth2"
"github.com/theopenlane/core/pkg/testutils"
oauth2Login "github.com/theopenlane/iam/providers/oauth2"

"github.com/google/go-github/v63/github"
"github.com/stretchr/testify/assert"
Expand Down
4 changes: 2 additions & 2 deletions providers/google/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
google "google.golang.org/api/oauth2/v2"
"google.golang.org/api/option"

oauth2Login "github.com/theopenlane/core/pkg/providers/oauth2"
"github.com/theopenlane/core/pkg/sessions"
oauth2Login "github.com/theopenlane/iam/providers/oauth2"
"github.com/theopenlane/iam/sessions"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion providers/google/login_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"golang.org/x/oauth2"
google "google.golang.org/api/oauth2/v2"

oauth2Login "github.com/theopenlane/core/pkg/providers/oauth2"
"github.com/theopenlane/core/pkg/testutils"
oauth2Login "github.com/theopenlane/iam/providers/oauth2"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion providers/oauth2/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"golang.org/x/oauth2"

"github.com/theopenlane/core/pkg/keygen"
"github.com/theopenlane/core/pkg/sessions"
"github.com/theopenlane/iam/sessions"
)

// StateHandler checks for a state cookie, if found, adds to context; if missing, a
Expand Down
2 changes: 1 addition & 1 deletion providers/webauthn/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/go-webauthn/webauthn/protocol"
gowebauthn "github.com/go-webauthn/webauthn/webauthn"

"github.com/theopenlane/core/pkg/providers/webauthn"
"github.com/theopenlane/iam/providers/webauthn"
)

func TestUserWebAuthnID(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion totp/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/theopenlane/utils/totp"
"github.com/theopenlane/iam/totp"
)

func TestDefaultName(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion totp/testing/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"
"net/url"

"github.com/theopenlane/utils/totp/testing/views"
"github.com/theopenlane/iam/totp/testing/views"
)

const (
Expand Down

0 comments on commit 2216eb9

Please sign in to comment.