diff options
| author | mo khan <mo@mokhan.ca> | 2022-05-17 22:38:49 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2022-05-17 22:38:49 -0600 |
| commit | a9f028db268c426ec4e4f2f7cf2194628bfc070c (patch) | |
| tree | d3503d38b8f4abc99dd52663b0be877dc86830fa /cmd/api | |
| parent | 8a38385ec7d1ad38fd7c21c5c68065eba999d1b3 (diff) | |
use wildcard subject for unauthenticated sessions
Diffstat (limited to 'cmd/api')
| -rw-r--r-- | cmd/api/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/api/main.go b/cmd/api/main.go index 0359dc9..2f2e1b8 100644 --- a/cmd/api/main.go +++ b/cmd/api/main.go @@ -43,7 +43,7 @@ func Authorizer(e *casbin.Enforcer, keySet jwk.Set) func(next http.Handler) http var subject string raw := jwtauth.TokenFromHeader(r) if raw == "" { - subject = "" + subject = "*" } else { token, err := jwt.ParseString(raw, jwt.WithKeySet(keySet)) if err != nil { |
