Minor: Moved a piece of code
Create the identity service and endpoint
Updated .gitignore file.