Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1403)

Unified Diff: server/auth/authtest/db.go

Issue 2386643003: auth: Make luci-go services trust signatures produced by the token server. (Closed)
Patch Set: add tests Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « server/auth/authdb/snapshot_test.go ('k') | server/auth/delegation/checker.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: server/auth/authtest/db.go
diff --git a/server/auth/authtest/db.go b/server/auth/authtest/db.go
index 4c16cb9128bebd8e122fabfaf164938ebf8ba74e..a3490c5b91e6daedce57a1f5643e7949b0338e0c 100644
--- a/server/auth/authtest/db.go
+++ b/server/auth/authtest/db.go
@@ -14,6 +14,7 @@ import (
"github.com/luci/luci-go/server/auth"
"github.com/luci/luci-go/server/auth/authdb"
"github.com/luci/luci-go/server/auth/identity"
+ "github.com/luci/luci-go/server/auth/signing"
)
// FakeDB implements user group checking part of db.DB (IsMember).
@@ -57,6 +58,11 @@ func (db FakeDB) SharedSecrets(c context.Context) (secrets.Store, error) {
panic("FakeDB.SharedSecrets must not be called")
}
+// GetCertificates is part of authdb.DB interface. Panics.
+func (db FakeDB) GetCertificates(c context.Context, id identity.Identity) (*signing.PublicCertificates, error) {
+ panic("FakeDB.GetCertificates must not be called")
+}
+
// GetWhitelistForIdentity is part of authdb.DB interface. Panics.
func (db FakeDB) GetWhitelistForIdentity(c context.Context, ident identity.Identity) (string, error) {
panic("FakeDB.GetWhitelistForIdentity must not be called")
« no previous file with comments | « server/auth/authdb/snapshot_test.go ('k') | server/auth/delegation/checker.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698