Skip to content

Commit

Permalink
fixed lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMHD committed Jan 30, 2024
1 parent e1e18a2 commit 9c23801
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/auth/authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ func (a *Authenticator) testIPAccess(ac AccessTokensCacheEntry, wsvc Webservices

func (a *Authenticator) testDomainAccess(ac AccessTokensCacheEntry, wsvc WebservicesCacheEntry, request *Request) (CerberusReason, CerberusExtraHeaders) {
newExtraHeaders := make(CerberusExtraHeaders)
var referrer string
referrer = request.Request.Header.Get("referrer")
referrer := request.Request.Header.Get("referrer")

// Check if IgnoreDomain is true, skip domain list check
if !wsvc.Spec.IgnoreDomain && len(ac.Spec.AllowedDomains) > 0 && referrer != "" {
Expand Down

0 comments on commit 9c23801

Please sign in to comment.