Skip to content

Commit

Permalink
Add support for multi domains
Browse files Browse the repository at this point in the history
  • Loading branch information
jriguera committed Aug 29, 2018
1 parent 3dd1fe5 commit b3d0b61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions jobs/oauth2_proxy/spec
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ properties:
oauth2_proxy.client_secret:
description: ""
oauth2_proxy.email_domain:
description: "domain registered with oauth service provider"
example: "yourcompanydomain.com"
description: "List of domains registered with oauth service provider"
example: "[ yourcompanydomain.com ]"
default: [ "*" ]
oauth2_proxy.cookie_name:
description: "the name of the cookie that the oauth_proxy creates"
default: _oauth2_proxy
Expand Down
4 changes: 3 additions & 1 deletion jobs/oauth2_proxy/templates/bin/ctl.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ case ${1:-help} in
--set-xauthrequest="true" \
--request-logging="true" \
--upstream="<%= p('oauth2_proxy.upstream') %>" \
--email-domain="<%= p('oauth2_proxy.email_domain') %>"\
<% p("oauth2_proxy.email_domain ", []).each do |email| %>
--email-domain="<%= email %>"\
<% end %>
--cookie-secret="<%= p('oauth2_proxy.cookie_secret') %>" \
--cookie-refresh="<%= p('oauth2_proxy.cookie_refresh') %>" \
--cookie-secure="<%= p('oauth2_proxy.cookie_secure') %>" \
Expand Down

0 comments on commit b3d0b61

Please sign in to comment.