From b457b5a1a33263546ddde447358e3a31ad5b6860 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 28 Jun 2019 09:52:53 +0200 Subject: [PATCH] Added method to the auth interface to get the ID --- web.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web.go b/web.go index d7b40ca..868c367 100644 --- a/web.go +++ b/web.go @@ -50,7 +50,8 @@ type HTTPError struct { // Auth defines the authentication interface used to get some auth thing type Auth interface { - AuthDummy() + // Most of the time, we need an ID from the auth object only. Having this method saves the need to cast it. + GetID() int64 } // Authprovider is a holder for the implementation of an authprovider by the application