macaroons: use constraint layer for macaroon tweaking

This commit is contained in:
whythat authored and Olaoluwa Osuntokun committed 2017-09-19 16:46:20 -07:00
1 parent 5c3493bd30
commit a6b9155150
3 files changed
+25 -30

No files matched your search

+2 -2
View File
@@ -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(),
))
}