appleboy / appleboy/gin-jwt

Add ParseOption in order to skip claim validation in jwt.Parse method

Open
#286 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3k
Forks
387
Avg merge
4h 16m
Merged PRs (30d)
1

Description

I am trying to test my API's which are having different expiration time, so I had written my custom MiddlewareFunc. Claims will be validated in this custom function that's need to avoid validation in ParseWithClaims method.
If you approve this, I will make a PR for this.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the jwt.Parse and ParseWithClaims entry points and read how claim validation is currently performed. Determine how a ParseOption could disable that validation while preserving the existing parsing behavior, then verify that custom middleware can perform the validation instead. Done means the requested option works without changing default validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.