Moved authentication pattern to configuration file. This makes it
configurable instead of staticly coded into the application.