cmd/eksterd/auth.go
Function checkAuthToken
has 6 return statements (exceeds 4 allowed). Open
Open
func checkAuthToken(header string, tokenEndpoint string, token *auth.TokenResponse) (bool, error) {
req, err := buildValidateAuthTokenRequest(tokenEndpoint, header)
if err != nil {
return false, err
}
- Create a ticketCreate a ticket
Function cachedCheckAuthToken
has 5 return statements (exceeds 4 allowed). Open
Open
func cachedCheckAuthToken(conn redis.Conn, header string, tokenEndpoint string, r *auth.TokenResponse) (bool, error) {
tokens := authHeaderRegex.FindStringSubmatch(header)
if len(tokens) != 2 {
return false, fmt.Errorf("could not find token in header")
- Create a ticketCreate a ticket