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:
parent
e91f09875a
commit
4fe0d5659b
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user