Compare commits
2 commits
25ca014697
...
f8852c7626
Author | SHA1 | Date | |
---|---|---|---|
f8852c7626 | |||
ac0140506c |
1 changed files with 1 additions and 2 deletions
|
@ -173,8 +173,7 @@ func getPolicyRequest(ctx context.Context, r *http.Request, cfg PolicyConfig, re
|
|||
pk *keys.PublicKey
|
||||
)
|
||||
|
||||
reqCtx := r.Context()
|
||||
bd, err := GetBoxData(reqCtx)
|
||||
bd, err := GetBoxData(ctx)
|
||||
if err == nil && bd.Gate.BearerToken != nil {
|
||||
pk, err = keys.NewPublicKeyFromBytes(bd.Gate.BearerToken.SigningKeyBytes(), elliptic.P256())
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue