veyron/services/identity,veyron/security: Fix expiry caveat bug, and
improve rendering of thirdparty caveats.
Change-Id: I63dc5fecbc1db4353d623da8787b209bd7c1cb48
diff --git a/services/identity/googleoauth/handler.go b/services/identity/googleoauth/handler.go
index fb93bc1..9f40f0e 100644
--- a/services/identity/googleoauth/handler.go
+++ b/services/identity/googleoauth/handler.go
@@ -472,7 +472,7 @@
if err != nil {
return empty, fmt.Errorf("failed to parse duration: %v", err)
}
- return security.ExpiryCaveat(t.Add(time.Minute * offset))
+ return security.ExpiryCaveat(t.Add(offset))
}
func newMethodCaveat(methods []string) (security.Caveat, error) {