requiresAuth

Enables authentication and authorization checks for an interface class.

Web/REST interface classes that have authentication enabled are required to specify either the @auth or the @noAuth attribute for every public method.

The type of the authentication information, as returned by the authenticate() method, can optionally be specified as a template argument. This is useful if an interface is annotated and the authenticate() method is only declared in the actual class implementation.

  1. RequiresAuthAttribute!void requiresAuth [@property getter]
    @property
    requiresAuth
    ()
  2. RequiresAuthAttribute!AUTH_INFO requiresAuth [@property getter]

Meta