diff options
author | jobol <jobol@nonadev.net> | 2016-05-25 16:55:47 +0200 |
---|---|---|
committer | jobol <jobol@nonadev.net> | 2016-05-25 16:55:47 +0200 |
commit | 4366cce13304515986a29f3a5f06bb815397b726 (patch) | |
tree | 5ed95cd50b036ccb8887d993e430a57bdaae642c /plugins/session | |
parent | 9eb125dae5663f521464d35292c646d9e76d2076 (diff) |
refactor requirements
Signed-off-by: jobol <jobol@nonadev.net>
Diffstat (limited to 'plugins/session')
-rw-r--r-- | plugins/session/token-api.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/session/token-api.c b/plugins/session/token-api.c index a8167c42..a132366f 100644 --- a/plugins/session/token-api.c +++ b/plugins/session/token-api.c @@ -100,11 +100,11 @@ static void clientGetPing (struct afb_req request) { static const struct AFB_verb_desc_v1 verbs[]= { - {"ping" , AFB_SESSION_NONE , clientGetPing ,"Ping Rest Test Service"}, - {"create" , AFB_SESSION_CREATE, clientContextCreate ,"Request Client Context Creation"}, - {"refresh" , AFB_SESSION_RENEW , clientContextRefresh,"Refresh Client Context Token"}, - {"check" , AFB_SESSION_CHECK , clientContextCheck ,"Check Client Context Token"}, - {"reset" , AFB_SESSION_CLOSE , clientContextReset ,"Close Client Context and Free resources"}, + {"ping" , AFB_SESSION_NONE , clientGetPing ,"Ping Rest Test Service"}, + {"create" , AFB_SESSION_LOA_EQ_0 | AFB_SESSION_RENEW, clientContextCreate ,"Request Client Context Creation"}, + {"refresh" , AFB_SESSION_LOA_GE_1 | AFB_SESSION_RENEW, clientContextRefresh,"Refresh Client Context Token"}, + {"check" , AFB_SESSION_LOA_GE_1 , clientContextCheck ,"Check Client Context Token"}, + {"reset" , AFB_SESSION_LOA_GE_1 | AFB_SESSION_CLOSE, clientContextReset ,"Close Client Context and Free resources"}, {NULL} }; |