Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,7 @@ func (a authenticator) feedID(feed Feed) string {

func (a authenticator) feedAuth(resource resource, feed Feed) authFunc {
return func(req *http.Request) error {
var feedID string
if feed != nil {
feedID = a.feedID(feed)
} else {
feedID = "*"
}
feedID := a.feedID(feed)
return a.jwtSignRequest(req, a.jwtFeedClaims(resource, actions[req.Method], feedID))
}
}
Expand Down