DecodedCo / predix-seed-xlp

Dashboard Seed is an application that uses Px Web Components and Px UI Elements inside an Angular application.
Other
0 stars 1 forks source link

Write-up UAA setup steps #4

Closed amadeuspzs closed 8 years ago

amadeuspzs commented 8 years ago

1. Setup UAA service

  1. cf create-service predix-uaa Tiered xlpuser04-uaa -c '{"adminClientSecret":"clientsecret"}'
  2. cf bind-service xlp-polymer xlpuser04-uaa
  3. cf restage xlp-polymer
  4. Add xlpuser-04-uaa to manifest.yml (duplicative of step 2?)
  5. cf env xlp-polymer to extra

2. Add client for UAA

  1. uaac target <uaa-URI>
  2. uaac token client get admin
  3. uaac client add xlpuser04-uaa-client -i:
    1. scope: openid uaa.none
    2. authorized grant types: password client_credentials authorization_code
    3. authorities: uaa.resource openid uaa.none
  4. echo -n xlpuser04-uaa-client:clientsecret | base64 - save in manifest.yml under base64ClientCredential
  5. Update clientId in manifest.yml

3. Add users to app

  1. uaac user add <my-user> --emails <my_user>@domain.com --password <my_password>
  2. uaac group add uaa.user
  3. uaac member add uaa.user user