Added method to the auth interface to get the ID

This commit is contained in:
kolaente 2019-06-28 09:52:53 +02:00
parent b5c16e24b0
commit b457b5a1a3
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 1 deletions

3
web.go
View File

@ -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