Wobserver v0.1.7 Wobserver.Security

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

Summary

Functions

Authenticates a given conn

Checks whether a given req is authenticated

Functions

authenticate(conn)
authenticate(Plug.Conn.t) :: Plug.Conn.t

Authenticates a given conn.

authenticated?(req)
authenticated?(Plug.Conn.t) :: boolean
authenticated?(:cowboy_req.req) :: boolean

Checks whether a given req is authenticated.