afb-hswitch: Update websocket policy 61/23161/1
authorJose Bollo <jose.bollo@iot.bzh>
Sat, 16 Nov 2019 08:30:51 +0000 (09:30 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Mon, 2 Dec 2019 09:18:12 +0000 (10:18 +0100)
commit98b214e0454f1b55c5ce665bd5c848354d18c9e6
treeed499b0a041d0e8d35c3ead762d0f7dfcfd47466
parentaf003cd2241146fd4fc67e5e6fdc0835c0aca66d
afb-hswitch: Update websocket policy

The previous policy for websocket was to enforce them
to present a valid token when establishing. This policy
is removed because the Websocket API of javascript doesn't
provide a way to set the Bearer token in the HTTP header
of the negociation (a big miss in my opinion).

But because the new policy of token logic is to check
the token at each request, it is not more needed to check
it at establishment.

Bug-AGL: SPEC-2968

Change-Id: I2941757492a27a2eed14e26fbb411330ab4aa8bc
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
src/afb-hswitch.c