From 2230fe3c21df30f618058d0a0f61b381e65ddb76 Mon Sep 17 00:00:00 2001 From: Antoine Mercadal Date: Thu, 2 Nov 2017 10:33:48 -0700 Subject: [PATCH] [major] removed auth interfaces --- auth.go | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 auth.go diff --git a/auth.go b/auth.go deleted file mode 100644 index 340cb3c..0000000 --- a/auth.go +++ /dev/null @@ -1,33 +0,0 @@ -package elemental - -import ( - "crypto/tls" - - "github.com/opentracing/opentracing-go" -) - -// A ClaimsHolder is the interface of a structure that can hold -// Identity Claims (as in a JWT). -type ClaimsHolder interface { - SetClaims([]string) - GetClaims() []string - GetClaimsMap() map[string]string -} - -// A TokenHolder is the interface of a structure that can hold a token. -type TokenHolder interface { - GetToken() string - TLSConnectionState() *tls.ConnectionState -} - -// A SpanHolder is the interface of a structure that can holde a tracing span. -type SpanHolder interface { - Span() opentracing.Span - NewChildSpan(string) opentracing.Span -} - -// An SessionHolder is both a ClaimsHolder and a TokenHolder. -type SessionHolder interface { - ClaimsHolder - TokenHolder -}