Added a middleware to automatically register an authorization from a list of Auths.