added authentication on snippets app(demo)

Signed-off-by: Nicholas Tan Jerome <nicholas.jerome@kit.edu>