mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-05-19 22:23:30 +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
|
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
|
// original application redirect
|
||||||
func encodeState(nonce string, redirect string, encode bool) string {
|
func encodeState(nonce string, redirect string, encode bool) string {
|
||||||
rawString := fmt.Sprintf("%v:%v", nonce, redirect)
|
rawString := fmt.Sprintf("%v:%v", nonce, redirect)
|
||||||
|
@ -87,7 +87,7 @@ func (h *htpasswdMap) loadHTPasswdFile(filename string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// createHtasswdMap constructs an htpasswdMap from the given records
|
// createHtpasswdMap constructs an htpasswdMap from the given records
|
||||||
func createHtpasswdMap(records [][]string) (*htpasswdMap, error) {
|
func createHtpasswdMap(records [][]string) (*htpasswdMap, error) {
|
||||||
h := &htpasswdMap{users: make(map[string]interface{})}
|
h := &htpasswdMap{users: make(map[string]interface{})}
|
||||||
var invalidRecords, invalidEntries []string
|
var invalidRecords, invalidEntries []string
|
||||||
|
@ -46,7 +46,7 @@ func validateAuthRoutes(o *options.Options) []string {
|
|||||||
return msgs
|
return msgs
|
||||||
}
|
}
|
||||||
|
|
||||||
// validateRegex validates regex paths passed with options.SkipAuthRegex
|
// validateAuthRegexes validates regex paths passed with options.SkipAuthRegex
|
||||||
func validateAuthRegexes(o *options.Options) []string {
|
func validateAuthRegexes(o *options.Options) []string {
|
||||||
return validateRegexes(o.SkipAuthRegex)
|
return validateRegexes(o.SkipAuthRegex)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user