About this task
Use this topic to get started creating a security service using Predix.
- Sign up with Predix.IO. If you are a Hackathon Participant, you have a Predix Basic user account.
- Deploy the Deploy Hello World App.
- Subscribe to predix-uaa and Intelligent Environment (IE) services through the Predix Catalog
- Bind the UAA and IE services to Hello Worldcf bind-service <your_app_name> <service_instance_name>
- Update the OAuth2 Client to Use Your Service Instance
- Make sure you provide the IE services oauth-scope in the scope and authorities from “step 10- In the Request field, note the following” when using the Predix Starter Kitto generate the client_id, client_secret and token.
- To retrieve the oauth-scope, use this command:cf env <your_app_name>
- Enter the oauth-scope when generating the client token
{"client_id":"traffic_test2","client_secret":"traffic2","scope":["uaa.none","openid","ie-traffic.zones.334d60f8-2bdf-4b9b-a561-1b16a6f2df0e.user""],"authorized_grant_types":["authorization_code","client_credentials","refresh_token","password"],"authorities":["openid","uaa.none","uaa.resource",
"ie-traffic.zones.334d60f8-2bdf-4b9b-a561-1b16a6f2df0e.user"],"autoapprove":["openid”]}
- Now, you can start making Predix API calls using the token you just created.
- In the Traffic Seed App, get the token based on your setting in the manifest.yml file. See Readme for more details.
- If you are using the Traffic Seed App, you also need to create a user and associate the user to a group for the login page.