How to register an app in UAA?

731 views
Skip to first unread message

samnan...@gmail.com

unread,
Aug 30, 2013, 8:08:58 AM8/30/13
to vcap...@cloudfoundry.org
I want to deploy https://github.com/ravanrijn/styx on my Cloud Foundry server. In the instruction, they mention about "Register Styx as client in the UAA"?
For example, my uaa url is http://uaa.aws.mydomain.com, so how do I register the app to get client id and client secret?

Dr Nic Williams

unread,
Aug 30, 2013, 10:41:52 AM8/30/13
to vcap...@cloudfoundry.org
Samnang, currently afaik, client registration is only via the static config files (I don't know if the UAA plans to add "Register an application" UX; plus there is also the oauth2 service [2] which should be for app registration but I've never heard if it works or anyone using it).

If you're deploying UAA via bosh, then in your properties is a uaac.clients section:

Here is an example of register app client "login" - https://gist.github.com/drnic/5785295#file-cf-openstack-dns-small-yml-L296-L302



On Fri, Aug 30, 2013 at 5:08 AM, <samnan...@gmail.com> wrote:
I want to deploy https://github.com/ravanrijn/styx on my Cloud Foundry server. In the instruction, they mention about "Register Styx as client in the UAA"?
For example, my uaa url is http://uaa.aws.mydomain.com, so how do I register the app to get client id and client secret?

To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.



--
Dr Nic Williams
Stark & Wayne LLC - consultancy for Cloud Foundry users
twitter @drnic

Samnang Chhun

unread,
Aug 30, 2013, 11:15:02 AM8/30/13
to vcap...@cloudfoundry.org
Dr Nic, in your gist example file, I saw secret key, and is it I need to generate my own?
Is this look good for register styx client app?

styx:
  id: styx
  scope: openid
  authorities: oauth.login
  secret: HZtd2FyZS5jb20iL
  authorized-grant-types: authorization_code,client_credentials,refresh_token

-
Samnang

Dr Nic Williams

unread,
Aug 30, 2013, 12:38:10 PM8/30/13
to vcap...@cloudfoundry.org
Also try this:

      styx:        id: styx
        override: true
        autoapprove: true
        authorities: scim.write,scim.read,cloud_controller.read,cloud_controller.write,password.write,uaa.admin,uaa.resource,cloud_controller.admin
        authorized-grant-types: authorization_code,client_credentials,password,implicit
        scope: openid,cloud_controller.read,cloud_controller.write,password.write
        access_token_validity: 1209600
        refresh_token_validity: 1209600
        secret: SOMETHINGNICEANDLOOOOOOOOONG

Joel D'sa

unread,
Aug 30, 2013, 12:54:11 PM8/30/13
to vcap...@cloudfoundry.org, samnan...@gmail.com
Hi Samnang, 

The API to manage clients is described at


You can use uaac and cf-uaa-lib to do this via the command line or API. To use the API, you need to authenticate as a client with clients.read and clients.write scopes. The bootstrap admin client has those scopes.

HTH.

- Joel

Mike Heath

unread,
Sep 2, 2013, 1:10:55 PM9/2/13
to vcap...@cloudfoundry.org
You can use uaac (gem install cf-uaac). uaac will let you create an oauth client outside of the UAA config.

-Mike

dvbala...@gmail.com

unread,
Aug 21, 2014, 12:40:14 AM8/21/14
to vcap...@cloudfoundry.org
Hi Friends,

Could anyone please help me, how to get Authorization Token for Cloud Foundry.

Thanks in advance,
Balaji.D

dvbala...@gmail.com

unread,
Aug 25, 2014, 5:01:59 AM8/25/14
to vcap...@cloudfoundry.org
Hi Friends,

What are the required parameters in RestClient to get Authorization Token or access_token.

Thanks in advance,
Balaji.D

Johannes Hiemer

unread,
Aug 25, 2014, 5:11:38 AM8/25/14
to vcap...@cloudfoundry.org, dvbala...@gmail.com
Hi Balaji,
honestly it is quite easy if you take a look at the source transferred when authenticating with cf.

Filip Hanik

unread,
Aug 25, 2014, 11:04:02 AM8/25/14
to vcap...@cloudfoundry.org

Balaji D

unread,
Sep 25, 2014, 3:30:48 AM9/25/14
to vcap...@cloudfoundry.org
Really Helpful.

Thanks and Regards,
D.Balaji

--
You received this message because you are subscribed to a topic in the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/CANXYgqEX3ghmJPxTDDDaRobhcDPFEb_4aUdpYsnLA7cLCe%3Db0Q%40mail.gmail.com.

Reply all
Reply to author
Forward
0 new messages