Skip to content

Commit

Permalink
check api before authenticate the request
Browse files Browse the repository at this point in the history
  • Loading branch information
l30035975 committed Dec 28, 2023
1 parent ce7afe0 commit 8c4ab94
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/plugin/auth/buildin/buildin.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ func (ba *TokenAuthenticator) Identify(req *http.Request) error {

pattern := getRequestPattern(req)

if !rbacsvc.MustAuth(pattern) {
return nil
}

account, err := ba.mustAuth(req, pattern)
if account == nil || err != nil {
return err
Expand Down

0 comments on commit 8c4ab94

Please sign in to comment.