cookbook 'google_auth_proxy', '= 1.0.0'
google_auth_proxy (3) Versions 1.0.0 Follow2
Installs/Configures google_auth_proxy
cookbook 'google_auth_proxy', '= 1.0.0', :supermarket
knife supermarket install google_auth_proxy
knife supermarket download google_auth_proxy
google_auth_proxy Cookbook
This cookbook sets up a Google Auth Proxy instance provider.
Dependencies
This cookbook needs golang
and must have Go version 1.1.1+
It only supports Upstart as a service provider at the moment.
How to use the provider
include_recipe "google_auth_proxy" # Proxy definition example # Get your own keys at https://code.google.com/apis/console google_auth_proxy_install "my-app" do client_id "123456.apps.googleusercontent.com" client_secret "my_secret" google_apps_domains ["mycompany.com"] # Restrict login to a set of Google apps domains cookie_domain "my-app.mycompany.com" redirect_url "http://my-app.mycompany.com/oauth2/callback" listen_address "127.0.0.1:4180" upstreams ["http://127.0.0.1:4181/"] end
The cookie secret will be stored as a node attribute, one for each resource name, under [:google_auth][:cookie_secret]
.
An Upstart service for the proxy will be created as google_auth_proxy_my-app
.
nginx example vhost config
For more details, see the README of Google Auth Proxy.
# Send everything through the Google Auth Proxy
server {
listen 0.0.0.0:80;
server_name my-app.mycompany.com;
access_log /var/log/nginx/my-app.mycompany.com.access.log;
location / {
proxy_pass http://127.0.0.1:4180;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_connect_timeout 1;
proxy_send_timeout 30;
proxy_read_timeout 30;
}
}
# The actual service
server {
listen 127.0.0.1:4181;
location / {
root /var/www;
index index.html index.htm;
}
License and Authors
Authors: De Marque Inc.
Dependent cookbooks
golang >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Foodcritic Metric
1.0.0 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5109b673909caa68fe619e15/google_auth_proxy/providers/install.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5109b673909caa68fe619e15/google_auth_proxy/providers/install.rb:31
FC017: LWRP does not notify when updated: /tmp/cook/5109b673909caa68fe619e15/google_auth_proxy/providers/install.rb:3
1.0.0 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/5109b673909caa68fe619e15/google_auth_proxy/providers/install.rb:31
FC017: LWRP does not notify when updated: /tmp/cook/5109b673909caa68fe619e15/google_auth_proxy/providers/install.rb:3