An authenticating route service for Cloud Foundry.
The Route Service feature is currently in development, the proposal can be found in this Google Doc.
This example route service uses the new headers/features that have been added to the GoRouter. For example:
X-CF-Forwarded-Url
: A header that contains the original URL that the GoRouter received.X-CF-Proxy-Signature
: A header that the GoRouter uses to determine if a request has gone through the route service.
- Download this repository and
cf push
to your chosen CF deployment. - Push your app which will be associated with the route service.
- Create a user-provided route service (see docs)
- Bind the route service to the route (domain/hostname)
- Go to "/" and you should get redirected to "/auth/login"
See configurator.
# ensure the space has a user-provided-service reference
cf create-user-provided-service authenticating-route-service -r https://xxx
# where xxx is the route service endpoint
# bind the app in the space to the user-provided-service in that space
cf bind-route-service DOMAIN --hostname APP_HOSTNAME authenticating-route-service