Refactor: duplication
AuthorizationHeader, realm is optional