Skip to content

Commit

Permalink
fix: non-point variable using for json unmarshal
Browse files Browse the repository at this point in the history
Signed-off-by: Ink33 <Ink33@smlk.org>
  • Loading branch information
Ink-33 committed Dec 31, 2023
1 parent b9873ad commit bbacf81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions plugins/wasm-go/extensions/jwt-auth/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM scratch
COPY main.wasm plugin.wasm
2 changes: 1 addition & 1 deletion plugins/wasm-go/extensions/jwt-auth/handler/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func consumerVerify(consumer *cfg.Consumer, verifyTime time.Time, log wrapper.Lo

// Claims 支持直接传入 jose 的 jwks 并自动选择合适的公钥
// 无需额外调用verify,claims内部已进行验证
err = token.Claims(keys, out)
err = token.Claims(keys, &out)
if err != nil {
return &ErrDenied{
msg: fmt.Sprintf("jwt verify failed, consumer: %s, token: %s, reason: %s",
Expand Down

0 comments on commit bbacf81

Please sign in to comment.