Simplified authentication code for main exchange demo application.