Preparing work for terminal authentication and session establishment
Testing code for authentication