iris-contrib / iris-contrib/middleware

[FEATURE REQUEST]get username from http basic auth and other types of auth

Open
#63 21 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
239
Forks
89
PR merge metrics
No merged PRs in 30d

Description

https://github.com/iris-contrib/middleware/blob/master/casbin/casbin.go#L72

this line of code get username only by BasicAuth
In production environment, there will be other types of auth, such as session, token, jwt, OAuth...

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with casbin/casbin.go at the referenced line and review the issue discussion to understand how the middleware currently obtains a username through BasicAuth. Determine which authentication sources and integration contract should be supported before changing behavior. Done requires an agreed design and coverage for the selected authentication types.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.