View Source Wobserver.Security (Wobserver NG v1.14.0)

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

Functions

Authenticates a given conn.

Checks whether a given conn or req is authenticated.

Link to this section Functions

@spec authenticate(Plug.Conn.t()) :: Plug.Conn.t()

Authenticates a given conn.

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

Checks whether a given conn or req is authenticated.