Simple authentication and authorization for Gate.