Talking to UAA Instace
- Install uaac-client using command
gem install cf-uaac - If you don't have
geminstalled on your machine, Please do so. If you run into issues, Please try reading about rvm. - bind the
todo-serverwith the uaa instance created.cf bs todo-server uaa. Don't restart thetodo-serveryet. - do a
cf env todo-serverand search forpredix-uaa. You should be able to see something like"predix-uaa": [ { "credentials": { "issuerId": "https://<UAA_INSTANCE_ID>.predix-uaa.run.aws-usw02-pr.ice.predix.io/oauth/token", "uri": "https://<UAA_INSTANCE_ID>.predix-uaa.run.aws-usw02-pr.ice.predix.io", "zone": { "http-header-name": "X-Identity-Zone-Id", "http-header-value": "<UAA_INSTANCE_ID>" } }, "label": "predix-uaa", "name": "uaa", "plan": "beta", "tags": [] } ] - Target
uaacto UAA Instance.uaac target https://<UAA_INSTANCE_ID>.predix-uaa.run.aws-usw02-pr.ice.predix.io - Create a context with uaac
uaac token client get admin -s <CLIENT_SECRET>whereCLIENT_SECRETis the secret that was created here
Tips
- Installing any managing ruby versions and gems is easier if you have ruby-version-manager installed
- You might need to specify your proxy when installing cf-uaac:
sudo gem install --http-proxy http://proxy-src.research.ge.com:8080 cf-uaac