Added the option to allow exclude some methods of authentication