1 parent
fa619b0910
commit
37fb9815ce
3 files changed
+48
-5
No files matched your search
@@ -11,6 +11,9 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
// TestAuthToken, despite its name, does more than just return an auth token; it
|
||||
// also creates an auth method, an account, and a user and binds them together,
|
||||
// then creates an auth token against it
|
||||
func TestAuthToken(t testing.TB, conn *db.DB, kms *kms.Kms, scopeId string, opt ...Option) *AuthToken {
|
||||
t.Helper()
|
||||
authMethod := password.TestAuthMethods(t, conn, scopeId, 1)[0]
|
||||
|
||||
Reference in new issue
Block a user