appleboy / appleboy/gin-jwt

Allow guest access to "protected" routes

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

Description

I'm trying to just get session information into my handlers. For that I want a route to be accessible by authorised users as well as guests. Can `gin_jwt` library handle this situation? I'm not sure how to avoid the `auth header empty` error.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading how the gin_jwt middleware protects routes and how handlers receive session information. Reproduce the “auth header empty” case, then clarify the expected behavior for guests versus authorized users and verify that both can reach the route without breaking protected-route authentication.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.