Create IdentityService and use it from the controller.