CRASH-124: Refactor the authentication to retrofit key based authentication in the framework