From 4fe0d5659b7f4ce79aa654e36277eef47fe72b20 Mon Sep 17 00:00:00 2001 From: yudrywet Date: Sun, 14 Apr 2024 20:01:33 +0800 Subject: [PATCH] chore: fix function names in comment Signed-off-by: yudrywet --- oauthproxy.go | 2 +- pkg/authentication/basic/htpasswd.go | 2 +- pkg/validation/allowlist.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/oauthproxy.go b/oauthproxy.go index 5a237ead..2aec2078 100644 --- a/oauthproxy.go +++ b/oauthproxy.go @@ -1231,7 +1231,7 @@ func checkAllowedEmails(req *http.Request, s *sessionsapi.SessionState) bool { return allowed } -// encodedState builds the OAuth state param out of our nonce and +// encodeState builds the OAuth state param out of our nonce and // original application redirect func encodeState(nonce string, redirect string, encode bool) string { rawString := fmt.Sprintf("%v:%v", nonce, redirect) diff --git a/pkg/authentication/basic/htpasswd.go b/pkg/authentication/basic/htpasswd.go index 1bf187d5..edc2e6b0 100644 --- a/pkg/authentication/basic/htpasswd.go +++ b/pkg/authentication/basic/htpasswd.go @@ -87,7 +87,7 @@ func (h *htpasswdMap) loadHTPasswdFile(filename string) error { return nil } -// createHtasswdMap constructs an htpasswdMap from the given records +// createHtpasswdMap constructs an htpasswdMap from the given records func createHtpasswdMap(records [][]string) (*htpasswdMap, error) { h := &htpasswdMap{users: make(map[string]interface{})} var invalidRecords, invalidEntries []string diff --git a/pkg/validation/allowlist.go b/pkg/validation/allowlist.go index 7a36027a..12f67aa7 100644 --- a/pkg/validation/allowlist.go +++ b/pkg/validation/allowlist.go @@ -46,7 +46,7 @@ func validateAuthRoutes(o *options.Options) []string { return msgs } -// validateRegex validates regex paths passed with options.SkipAuthRegex +// validateAuthRegexes validates regex paths passed with options.SkipAuthRegex func validateAuthRegexes(o *options.Options) []string { return validateRegexes(o.SkipAuthRegex) }