iris-contrib / iris-contrib/middleware
[FEATURE REQUEST]get username from http basic auth and other types of auth
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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