jwt icon indicating copy to clipboard operation
jwt copied to clipboard

Community maintained clone of https://github.com/dgrijalva/jwt-go

Results 98 jwt issues
Sort by recently updated
recently updated
newest added

Hello! I have this use-case where I want to parse the JWT, fetch the secret elsewhere and then verify the JWT. The current available functions forces me to parse the...

* build golang1.13.8, and build errors: ``` /root/go/pkg/mod/github.com/golang-jwt/[email protected]+incompatible/ecdsa.go:135:4: r.FillBytes undefined (type *big.Int has no field or method FillBytes) /root/go/pkg/mod/github.com/golang-jwt/[email protected]+incompatible/ecdsa.go:136:4: s.FillBytes undefined (type *big.Int has no field or method FillBytes) ```...

https://github.com/golang-jwt/jwt/blob/6bcdd9d5b6ecb03a80ac123d1a9dc363441cbffe/validator.go#L115-L120 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...

Sets the token's `Signature` field in `ParseUnverified` as discussed in #413

I'm not sure if this was an intentional design choice or just an oversight but `ParseUnverified` does not currently set the `token.Signature` field. Logically, I was expecting this field to...

Hi @oxisto, thanks for your quick reply to my Issue (#411). I created a fix with a handling similar to verifyExpiresAt which is what I also expected from verifyIssuedAt. Hope...

https://github.com/golang-jwt/jwt/blob/5ec246c074b71790eec1f2e05b54daf6ec29ec5f/parser_option.go#L97-L105 Would it be possible to add a convenience validator method `jwt.WithSubjects(subjects []string)` that returns an error if the request's subject doesn't match any of the `subjects`?

```go token, err := jwt.Parse(tokenString, func(token *jwt.Token) (interface{}, error) { ``` when I use JWT.Parse I get the error "Token used before issued", after writing the entire token in the...

In a situation where multiple audiences are validated by the validator, the order of evaluation of the for-range loop affects the result. If we produce matches such as: ``` {...