mirror of
https://github.com/google/nomulus
synced 2026-01-09 23:47:49 +00:00
Add more tests to new authentication framework
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=148459400
This commit is contained in:
@@ -154,7 +154,7 @@ public class RequestAuthenticator {
|
||||
checkArgument(
|
||||
Ordering.explicit(Auth.AuthMethod.INTERNAL, Auth.AuthMethod.API, Auth.AuthMethod.LEGACY)
|
||||
.isStrictlyOrdered(authMethods),
|
||||
"Auth methods must be strictly in order - INTERNAL, API, LEGACY");
|
||||
"Auth methods must be unique and strictly in order - INTERNAL, API, LEGACY");
|
||||
checkArgument(
|
||||
authMethods.contains(Auth.AuthMethod.INTERNAL),
|
||||
"Auth method INTERNAL must always be specified, and as the first auth method");
|
||||
|
||||
Reference in New Issue
Block a user