Refactoring of the authentication and authorization strategies and architecure.