Revamp authenticate (#1025)
This commit is contained in:
1 parent
aa570f4e48
commit
6605b4c9f8
14 files changed
+276
-207
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user