applied lint typo fixes
This commit is contained in:
@@ -123,7 +123,7 @@ func Fetch(ctx context.Context, jwksURL string, kid string) (*JWK, error) {
|
||||
}
|
||||
|
||||
// ValidateTokenSignature validates the signature of a token with the
|
||||
// public key retrievied from a remote JWKS.
|
||||
// public key retrieved from a remote JWKS.
|
||||
func ValidateTokenSignature(ctx context.Context, token string, jwksURL string) error {
|
||||
// extract the kid token header
|
||||
// ---
|
||||
|
||||
@@ -276,7 +276,7 @@ func TestValidateTokenSignature(t *testing.T) {
|
||||
true,
|
||||
},
|
||||
{
|
||||
"invlaid token",
|
||||
"invalid token",
|
||||
"abc",
|
||||
true,
|
||||
},
|
||||
|
||||
@@ -48,7 +48,7 @@ const NameOIDC string = "oidc"
|
||||
//
|
||||
// The provider support the following Extra config options:
|
||||
// - "jwksURL" - url to the keys to validate the id_token signature (optional and used only when reading the user data from the id_token)
|
||||
// - "issuers" - list of valid issuers for the iss id_token claim (optioanl and used only when reading the user data from the id_token)
|
||||
// - "issuers" - list of valid issuers for the iss id_token claim (optional and used only when reading the user data from the id_token)
|
||||
type OIDC struct {
|
||||
BaseProvider
|
||||
}
|
||||
|
||||
@@ -174,7 +174,7 @@ func parseCronSegment(segment string, min int, max int) (map[int]struct{}, error
|
||||
switch len(rangeParts) {
|
||||
case 1:
|
||||
if step != 1 {
|
||||
return nil, errors.New("invalid segement step - step > 1 could be used only with the wildcard or range format")
|
||||
return nil, errors.New("invalid segment step - step > 1 could be used only with the wildcard or range format")
|
||||
}
|
||||
parsed, err := strconv.Atoi(rangeParts[0])
|
||||
if err != nil {
|
||||
|
||||
@@ -87,7 +87,7 @@ func (s3 *S3) URL(path string) string {
|
||||
path = escapePath(parsed.Path)
|
||||
|
||||
// the rest is usually not expected to be part of the S3 path but it is kept to avoid surprises
|
||||
// (it will be further escaped if necessery by the Go HTTP client)
|
||||
// (it will be further escaped if necessary by the Go HTTP client)
|
||||
if parsed.RawQuery != "" {
|
||||
path += "?" + parsed.RawQuery
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ func TestS3URL(t *testing.T) {
|
||||
path := "/test_key/a/b c@d?a=@1&b=!2#@a b c"
|
||||
|
||||
// note: query params and fragments are kept as it is
|
||||
// since they are later escaped if necessery by the Go HTTP client
|
||||
// since they are later escaped if necessary by the Go HTTP client
|
||||
expectedPath := "/test_key/a/b%20c%40d?a=@1&b=!2#@a b c"
|
||||
|
||||
scenarios := []struct {
|
||||
|
||||
@@ -36,7 +36,7 @@ type TaggedHook[T Tagger] struct {
|
||||
// CanTriggerOn checks if the current TaggedHook can be triggered with
|
||||
// the provided event data tags.
|
||||
//
|
||||
// It returns always true if the hook doens't have any tags.
|
||||
// It returns always true if the hook doesn't have any tags.
|
||||
func (h *TaggedHook[T]) CanTriggerOn(tagsToCheck []string) bool {
|
||||
if len(h.tags) == 0 {
|
||||
return true // match all
|
||||
|
||||
@@ -336,7 +336,7 @@ func TestEventSetAllGetAll(t *testing.T) {
|
||||
event := router.Event{}
|
||||
event.SetAll(data)
|
||||
|
||||
// modify the data to ensure that the map was shallow coppied
|
||||
// modify the data to ensure that the map was shallow copied
|
||||
data["c"] = 789
|
||||
|
||||
result := event.GetAll()
|
||||
|
||||
Reference in New Issue
Block a user