Make JWT token values available to scope CONNECT query
This commit is contained in:
parent
aebc001229
commit
d70d063797
1 changed files with 3 additions and 1 deletions
|
@ -354,7 +354,9 @@ func checkBearer(c *fibre.Context, info string, callback func() error) (err erro
|
|||
|
||||
c.Set(varKeyAuth, &cnf.Auth{Kind: cnf.AuthDB})
|
||||
|
||||
qvars := map[string]interface{}{"id": auth.Data}
|
||||
qvars := map[string]interface{}{
|
||||
"id": auth.Data, "token": vars,
|
||||
}
|
||||
|
||||
query := &sql.Query{Statements: []sql.Statement{exp.Expr}}
|
||||
|
||||
|
|
Loading…
Reference in a new issue