anchor.diff:  
   ## <a id='projects'></a>UAA Projects ##
   
  -There are actually several projects here&#8212;the main `uaa` server application, and some samples:
  -
  -* `common` is a module containing a JAR with all the business logic.  It is used in
  -the webapps below.
  -
  -* `uaa` is the actual UAA server. `uaa` provides an authentication service plus authorized delegation for back-end services and apps (by issuing OAuth2 access tokens).
  -
  -* `api` (sample) is an OAuth2 resource service which returns a mock list of deployed apps. `api` is a service that provides resources that other applications might want to access on behalf of the resource owner (the end user).
  +There are several projects: the main `uaa` server application, and some samples:
  +
  +* `common` is a module containing a JAR with all the business logic. It is used in the webapps below.
  +
  +* `uaa` is the UAA server. `uaa` provides an authentication service plus authorized delegation for back-end services and apps by issuing OAuth2 access tokens.
  +
  +* `api` (sample) is an OAuth2 resource service which returns a mock list of deployed apps. `api` is a service that provides resources that other applications might want to access on behalf of the resource owner.
   
   * `app` (sample) is a user application that uses both of the above. `app` is a webapp that needs single sign-on and access to the `api` service on behalf of users.
   
   * `scim` is the <a href="http://www.simplecloud.info/">SCIM</a> user management module used by UAA.
   
  -
  -## <a id='uaa-server'></a>UAA Server ##
  +### <a id='uaa-server'></a>UAA Server ###
   
   The authentication service is `uaa`. It is a plain Spring MVC webapp.
   Deploy as normal in Tomcat or your container of choice, or execute `./gradlew run` to run it directly from the `uaa` directory in the source tree. When running with Gradle, it listens on port 8080 and the URL is `http://localhost:8080/uaa`.
  
positive.code: The application can operate in multiple different profiles according to the location (and presence) of the UAA server and the Login application.
  By default, the application looks for a UAA on `localhost:8080/uaa`, but you can change this by setting an environment variable (or System property) called `UAA_PROFILE`.
  In the application source code (`samples/app/src/main/resources`), you will find multiple properties files pre-configured with different likely locations for those servers.
  They are all in the form `application-<UAA_PROFILE>.properties`.
  The naming convention adopted is that the `UAA_PROFILE` is `local` for the localhost deployment, `vcap` for a `vcap.me` deployment, and `staging` for a staging deployment.
  The profile names are double-barreled (e.g. `local-vcap` when the login server is in a different location than the UAA server).
  
  #### Use Cases ####
  
  1. See all apps
  
  
negative.code: $ echo "spring_profiles: postgresql,default" > src/main/resources/uaa.yml
  $ ./gradlew run
  </pre>
  
  To bootstrap a microcloud-type environment, you need an admin client; there is a database initializer component that inserts one.
  If the default profile is active (i.e. not `postgresql`), there is also a `cf` CLI client so that the gem login works out of the box.
  