macaroons: use constraint layer for macaroon tweaking
This commit is contained in:
1 parent
5c3493bd30
commit
a6b9155150
3 files changed
+25
-30
No files matched your search
+2
-2
@@ -85,7 +85,7 @@ func ValidateMacaroon(ctx context.Context, method string,
|
||||
//
|
||||
// TODO(aakselrod): Add more checks as required.
|
||||
return svc.Check(macaroon.Slice{mac}, checkers.New(
|
||||
checkers.OperationChecker(method),
|
||||
checkers.TimeBefore,
|
||||
PermissionsChecker(method),
|
||||
TimeoutChecker(),
|
||||
))
|
||||
}
|
||||
Reference in new issue
Block a user