Adding support for authenticated entities in cognito