diff options
author | 2019-11-15 15:33:26 +0100 | |
---|---|---|
committer | 2019-11-25 11:48:31 +0100 | |
commit | 0d3dc9722c610857c2f83c4f3bf06299f2426a95 (patch) | |
tree | 5d2a8b950e32d5ca61b73ffe17266f0d9c5e5aac /src/afb-monitor.c | |
parent | e6908a2ee7b645517c062f2fd0419fcb3f4f976e (diff) |
Remove refreshing token
The token is no more generated by the binder
but by some external component.
Bug-AGL: SPEC-2968
Change-Id: I2c6221034272ab097e21e7727e4840b6b47bd0dc
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-monitor.c')
-rw-r--r-- | src/afb-monitor.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/afb-monitor.c b/src/afb-monitor.c index 15dd1a49..13687d36 100644 --- a/src/afb-monitor.c +++ b/src/afb-monitor.c @@ -297,7 +297,6 @@ static struct json_object *get_apis(struct json_object *spec) static const char _verbosity_[] = "verbosity"; static const char _apis_[] = "apis"; -static const char _refresh_token_[] = "refresh-token"; static void f_get(afb_req_t req) { @@ -373,7 +372,6 @@ static void f_trace(afb_req_t req) static void f_session(afb_req_t req) { struct json_object *r = NULL; - int refresh = 0; struct afb_xreq *xreq = xreq_from_req_x2(req); /* check right to call it */ @@ -382,11 +380,6 @@ static void f_session(afb_req_t req) return; } - /* renew the token if required */ - wrap_json_unpack(afb_req_json(req), "{s?:b}", _refresh_token_, &refresh); - if (refresh) - afb_context_refresh(&xreq->context); - /* make the result */ wrap_json_pack(&r, "{s:s,s:s,s:i,s:i}", "uuid", afb_session_uuid(xreq->context.session), |