How to Integrate an Application with Cloud Foundry using OAuth2

by November 5, 2012

This article explains how to use Cloud Foundry APIs from a user
application using the built in identity management solution in
the User Account and Authentication Service (UAA). The UAA
acts (amongst other things) as an OAuth 2.0 Authorization Server,
granting access tokens to Client applications for them to use when
accessing Resource Servers in the platform, such as the Cloud
Controller. This article describes the responsibilities of a Client
application and the mechanics of setting one up. It uses a simple
example Client application (available on
github), and recasts it into
various forms to help developers with different language and tool
preferences to get to grips with the topic (Ruby, Java, Grails).

How to Integrate an Application with Cloud Foundry using OAuth2

This article explains how to use Cloud Foundry APIs from a user application using the built in identity management solution in the User Account and Authentication Service (UAA). The UAA acts (amongst other things) as an OAuth 2.0 Authorization Server, granting access tokens to Client applications for them to use when accessing Resource Servers in the platform, such as the Cloud Controller. This article describes the responsibilities of a Client application and the mechanics of setting one up. It uses a simple example Client application (available on github), and recasts it into various forms to help developers with different language and tool preferences to get to grips with the topic (Ruby, Java, Grails).