This is a simple proof of concept that shows how to use Passport and its standard OAuth2 strategy to provide OAuth/SSO integration with CloudFoundry's UAA. This is just a simple demonstration application so the Express server is in one file and the Polymer UI is just thrown together.
To run this, just copy oauth-config-sample.json
to oauth-config.json
, update it to have your pertinent details and
run via node .
.
Note: I am aware of the passport-cloudfoundry Passport strategy but it's broken and I was able to use the built-in extensibility to do this without a specialized strategy.