Skip to content

Commit

Permalink
Merge pull request #19 from jtrw/develop
Browse files Browse the repository at this point in the history
Update authentication middleware options
  • Loading branch information
nilBora committed Apr 12, 2024
2 parents fe7004e + 37d3032 commit a461762
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ Middleware for REST API
1. Ping
2. PanicRecovery
3. Authentication via header
4. Authentication via JWT token
5. RealIP
6. SizeLimit
4. Authentication via Bearer token
5. Authentication via JWT token
6. BasicAuth
7. RealIP
8. SizeLimit

### Authentication via header

Expand All @@ -20,6 +22,10 @@ Authentication is a middleware that checks for a header with a given name and va

AuthenticationJWT is a middleware that checks for a JWT token in the Authorization header.

### Authentication via bearer token

AuthenticationBearer is a middleware that checks for a bearer token in the Authorization header.

### BasicAuth middleware

BasicAuth middleware checks for a username and password in the request's Authorization header.
Expand Down

0 comments on commit a461762

Please sign in to comment.