diff options
author | Jose Bollo <jose.bollo@iot.bzh> | 2019-11-15 16:40:34 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2019-11-29 12:48:17 +0100 |
commit | e80c1a7ae27456d546e202b1c498e9337d42ce14 (patch) | |
tree | 12ba9838d5dbc16da0ef46239080e10abf95c185 /src/afb-stub-ws.c | |
parent | b4da3b7f3db2211e7ecca74301e26b3089fda5a2 (diff) |
Use afb_token in contexts
Tokens are now object used in the context.
Bug-AGL: SPEC-2968
Change-Id: I107d31732202b7b1172afaf09f3a52470f050d7c
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-stub-ws.c')
-rw-r--r-- | src/afb-stub-ws.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-stub-ws.c b/src/afb-stub-ws.c index 3e9ede2f..40addd0b 100644 --- a/src/afb-stub-ws.c +++ b/src/afb-stub-ws.c @@ -530,7 +530,7 @@ static void server_on_call_cb(void *closure, struct afb_proto_ws_call *call, con afb_session_set_autoclose(wreq->xreq.context.session, 1); /* makes the call */ - wreq->xreq.cred = afb_cred_mixed_on_behalf_import(stubws->cred, sessionid, user_creds); + wreq->xreq.cred = afb_cred_mixed_on_behalf_import(stubws->cred, &wreq->xreq.context, user_creds); wreq->xreq.request.called_api = stubws->apiname; wreq->xreq.request.called_verb = verb; wreq->xreq.json = args; |