From e80c1a7ae27456d546e202b1c498e9337d42ce14 Mon Sep 17 00:00:00 2001 From: Jose Bollo Date: Fri, 15 Nov 2019 16:40:34 +0100 Subject: 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 --- src/afb-stub-ws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/afb-stub-ws.c') 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; -- cgit 1.2.3-korg