1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-02-19 19:44:16 +02:00

chore: fix function names in comment

Signed-off-by: yudrywet <yudeyao@yeah.net>
This commit is contained in:
yudrywet 2024-04-14 20:01:33 +08:00 committed by Jan Larwig
parent e91f09875a
commit 4fe0d5659b
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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