Enhancement: auth with resource required parameter
Enhancement: authentication callback
Clean: resource auth