Coder Social home page Coder Social logo

paas-cf_basic_auth_route_service's Introduction

CloudFoundry Basic Auth Route Service

This is a Proof-of-Concept CloudFoundry app that implements a route-service to add HTTP basic authentication to an application.

This uses a single pre-configured username and password. These are configured by setting the AUTH_USERNAME and AUTH_PASSWORD environment variables, which can be set with the cf set-env command.

If your CF deployment has a self-signed SSL certificate, set the SKIP_SSL_VALIDATION environment variable to avoid SSL errors when proxying to the backend.

Deployment script

You can deploy this route service to GOV.UK PaaS using the deployment in deploy.sh. It will not work outside of GOV.UK PaaS, because of some assumptions made about domain names.

To run the script, see the example below:

AUTH_USERNAME=username \
AUTH_PASSWORD=password \
ROUTE_SERVICE_APP_NAME=name_of_this_app \
ROUTE_SERVICE_NAME=name_to_give_the_route_service \
PROTECTED_APP_NAME=name_of_the_app_to_protect_with_basic_auth \
./deploy.sh

paas-cf_basic_auth_route_service's People

Contributors

alext avatar ap-hunt avatar risicle avatar gidsg avatar

Stargazers

Charles Karol Gancarz avatar

Watchers

James Cloos 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.