Skip to content

Wrong verifyIssuedAt parameter #411

@sknr

Description

@sknr

jwt/validator.go

Lines 115 to 120 in 6bcdd9d

// Check issued-at if the option is enabled
if v.verifyIat {
if err = v.verifyIssuedAt(claims, now, false); err != nil {
errs = append(errs, err)
}
}

When using the WithIssuedAt ParserOption, the internal verifyIssuedAt method must have the required parameter set to true instead of false otherwise the option only recognises if the token is issued in the future but not if the iat claim is missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions