Giter Site home page Giter Site logo

fake_login_server's Introduction

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.

fake_login_server's People

Contributors

rkoster avatar

Watchers

Tyler Poland avatar  avatar Dennis J. Bell avatar Matt Reider avatar Shawn Neal avatar David Laing avatar  avatar James Newkirk avatar James Cloos avatar Jared Wray avatar Bertrand Lupart avatar Quintessence avatar Benjamin Gandon avatar Chanda Dharap avatar Xiujiao Gao avatar DigitalEagle avatar clarence avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.