Wobserver v0.1.8 Wobserver.Security View Source
Handles basic websocket authentication.
A different module with the following methods can be set as :security
in the config:
authenticate(Conn.t) :: Conn.t
authenticated?(Conn.t) :: boolean
authenticated?(:cowboy_req.req) :: boolean
Link to this section Summary
Link to this section Functions
Authenticates a given conn
.
Link to this function
authenticated?(conn)
View Source
authenticated?(Plug.Conn.t) :: boolean
authenticated?(:cowboy_req.req) :: boolean
Checks whether a given req
is authenticated.