aboutsummaryrefslogtreecommitdiff
path: root/internal/auth
diff options
context:
space:
mode:
Diffstat (limited to 'internal/auth')
-rw-r--r--internal/auth/github/provider.go4
-rw-r--r--internal/auth/ldap/config.go4
-rw-r--r--internal/auth/pam/pam_stub.go2
-rw-r--r--internal/auth/pam/provider.go6
-rw-r--r--internal/auth/smtp/provider.go2
5 files changed, 9 insertions, 9 deletions
diff --git a/internal/auth/github/provider.go b/internal/auth/github/provider.go
index 4add2e54..eab9aa58 100644
--- a/internal/auth/github/provider.go
+++ b/internal/auth/github/provider.go
@@ -44,11 +44,11 @@ func (p *Provider) Config() interface{} {
return p.config
}
-func (p *Provider) HasTLS() bool {
+func (*Provider) HasTLS() bool {
return true
}
-func (p *Provider) UseTLS() bool {
+func (*Provider) UseTLS() bool {
return true
}
diff --git a/internal/auth/ldap/config.go b/internal/auth/ldap/config.go
index 79840ee4..4ef6f157 100644
--- a/internal/auth/ldap/config.go
+++ b/internal/auth/ldap/config.go
@@ -86,7 +86,7 @@ func (c *Config) sanitizedUserDN(username string) (string, bool) {
return strings.ReplaceAll(c.UserDN, "%s", username), true
}
-func (c *Config) sanitizedGroupFilter(group string) (string, bool) {
+func (*Config) sanitizedGroupFilter(group string) (string, bool) {
// See http://tools.ietf.org/search/rfc4515
badCharacters := "\x00*\\"
if strings.ContainsAny(group, badCharacters) {
@@ -97,7 +97,7 @@ func (c *Config) sanitizedGroupFilter(group string) (string, bool) {
return group, true
}
-func (c *Config) sanitizedGroupDN(groupDn string) (string, bool) {
+func (*Config) sanitizedGroupDN(groupDn string) (string, bool) {
// See http://tools.ietf.org/search/rfc4514: "special characters"
badCharacters := "\x00()*\\'\"#+;<>"
if strings.ContainsAny(groupDn, badCharacters) || strings.HasPrefix(groupDn, " ") || strings.HasSuffix(groupDn, " ") {
diff --git a/internal/auth/pam/pam_stub.go b/internal/auth/pam/pam_stub.go
index a9da5de6..387e6ed6 100644
--- a/internal/auth/pam/pam_stub.go
+++ b/internal/auth/pam/pam_stub.go
@@ -11,6 +11,6 @@ import (
"github.com/pkg/errors"
)
-func (c *Config) doAuth(_, _ string) error {
+func (*Config) doAuth(_, _ string) error {
return errors.New("PAM not supported")
}
diff --git a/internal/auth/pam/provider.go b/internal/auth/pam/provider.go
index ad1b7a8c..4cf0d69b 100644
--- a/internal/auth/pam/provider.go
+++ b/internal/auth/pam/provider.go
@@ -41,14 +41,14 @@ func (p *Provider) Config() interface{} {
return p.config
}
-func (p *Provider) HasTLS() bool {
+func (*Provider) HasTLS() bool {
return false
}
-func (p *Provider) UseTLS() bool {
+func (*Provider) UseTLS() bool {
return false
}
-func (p *Provider) SkipTLSVerify() bool {
+func (*Provider) SkipTLSVerify() bool {
return false
}
diff --git a/internal/auth/smtp/provider.go b/internal/auth/smtp/provider.go
index 1a136f0e..719d1067 100644
--- a/internal/auth/smtp/provider.go
+++ b/internal/auth/smtp/provider.go
@@ -92,7 +92,7 @@ func (p *Provider) Config() interface{} {
return p.config
}
-func (p *Provider) HasTLS() bool {
+func (*Provider) HasTLS() bool {
return true
}