Fixes authentication, integrity and authorization.