Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

cloudfoundry-community/fake_login_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fake login server for external uaa auth

This project is a proof of concept implmentation of the authentication flow described here.

Running locally

Bosh lite

To use the login-server a local bosh-lite cloudfoundry install is required. After the local cloudfoundry setup make the following changes to your manifest.

Cloudfoundry manifest changes

  • Remove the login_z1 job.
  • Remove uaa.clients.login.
  • Add the following properties:
login.url: http://192.168.176.1:4567
login.enabled: true
uaa.login.client_secret: login-secret
uaa.login.addnew: true # non existent client accounts are automatically added to database upon an authentication attempt

Apply the above changes to your cloudfoundry by running bosh deploy.

Running the login server

bundle install
ruby fake_login_server.rb

Verifying it all works

In a new shell (so the login server can stay running), login in with the cf cli.

cf target api.10.244.0.34.xip.io
cf login --username admin

It works when you can login with any password

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Copyright

All documentation and source code is copyright of Stark & Wayne LLC.

Subscription and Support

This documentation & tool is freely available to all people and companies coming to Cloud Foundry and bosh.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages