traefik-plugins / traefik-jwt-plugin

Traefik plugin which checks JWT tokens for required fields. Supports Open Policy Agent (OPA) and signature validation with JWKS
Apache License 2.0
98 stars 34 forks source link

Invalid content-type header parsing for Form URL encoded ? #63

Open nicovn opened 8 months ago

nicovn commented 8 months ago

Could it be that the "application/x-www-url-formencoded" should be "application/x-www-form-urlencoded" ?

line 676 in jwt.go : } else if contentType == "application/x-www-url-formencoded" {

When sending a form using Insomnia the form data is not included in the request sent to OPA

eshepelyuk commented 8 months ago

Could it be that the "application/x-www-url-formencoded" should be "application/x-www-form-urlencoded" ?

line 676 in jwt.go : } else if contentType == "application/x-www-url-formencoded" {

When sending a form using Insomnia the form data is not included in the request sent to OPA

Looks like you're right. Would you mind providing a PR for this ?