Create an admin user in UAA using the uaac CLI
What?
The UAA is the identity management service for Cloud Foundry. Its primary role is as an OAuth2 provider, issuing tokens for client applications to use when they act on behalf of Cloud Foundry users. In collaboration with the login server, it can authenticate users with their Cloud Foundry credentials, and can act as an SSO service using those credentials (or others). It has endpoints for managing user accounts and for registering OAuth2 clients, as well as various other management functions.
Administrators generally create users using the cf CLI, which creates user records in the UAA and associates them with org and space roles in the CCDB. However, there are occasions where you’d want to bypass Cloud Controller and only create a user in UAA. When that need arises, you can use the uaac CLI.
How?
Following these instructions, create a new admin user in UAA using the uaac CLI.
To confirm everything is set up correctly, your target
should be uaa.v3.pcfdev.io
(but run cf domains
to be sure!). Your client_secret
will be admin-client-secret
. I just gave you the answers, but it still may be worthwhile to follow the instructions to know how to obtain this information yourself.
Note: Depending on how you installed PCF Dev, you may instead have uaa.dev.cfdev.sh
as your domain.
Expected Result
Potentially a new UAA user. Potentially an inability to use uaac due to an invalid token.
Resources
Docs: Creating and Managing Users with the UAA CLI (UAAC) Docs: UAA SysAdmin Guide Blog post: Introducing the UAA and Security for Cloud Foundry (written in ‘12)
Relevant Repos and Teams
UAA: cloudfoundry/cf-uaac