Make JWT token values available to scope CONNECT query

This commit is contained in:
Tobie Morgan Hitchcock 2018-03-02 11:03:19 +00:00
parent aebc001229
commit d70d063797

View file

@ -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}}