First implementation of authorization.