Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Remove refreshing token
[src/app-framework-binder.git]
/
src
/
afb-monitor.c
diff --git
a/src/afb-monitor.c
b/src/afb-monitor.c
index
15dd1a4
..
13687d3
100644
(file)
--- 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 _verbosity_[] = "verbosity";
static const char _apis_[] = "apis";
-static const char _refresh_token_[] = "refresh-token";
static void f_get(afb_req_t req)
{
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;
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 */
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;
}
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),
/* make the result */
wrap_json_pack(&r, "{s:s,s:s,s:i,s:i}",
"uuid", afb_session_uuid(xreq->context.session),