Revamp authenticate (#1025)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2021-03-24 16:07:43 -04:00
1 parent aa570f4e48
commit 6605b4c9f8
14 files changed
+276 -207

No files matched your search

+2
View File
@@ -131,6 +131,7 @@ func (tc *TestController) Token() *authtokens.AuthToken {
token, err := authmethods.NewClient(tc.Client()).Authenticate(
tc.Context(),
tc.b.DevAuthMethodId,
"login",
map[string]interface{}{
"login_name": tc.b.DevLoginName,
"password": tc.b.DevPassword,
@@ -151,6 +152,7 @@ func (tc *TestController) UnprivilegedToken() *authtokens.AuthToken {
token, err := authmethods.NewClient(tc.Client()).Authenticate(
tc.Context(),
tc.b.DevAuthMethodId,
"login",
map[string]interface{}{
"login_name": tc.b.DevUnprivilegedLoginName,
"password": tc.b.DevUnprivilegedPassword,