Skip to content

Commit

Permalink
Merge pull request #709 from openstax/fix-sso-for-localhost
Browse files Browse the repository at this point in the history
Remove domain from sso cookie on dev and test
  • Loading branch information
BryanHouston authored Sep 30, 2019
2 parents 21e0a54 + 6444b30 commit 143f4fd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/secrets.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ development:
cookie:
name: <%= ENV["SSO_COOKIE_NAME"] || 'ox' %>
options:
domain: <%= ENV["SSO_COOKIE_DOMAIN"] || "''" %>
<% if ENV.key?("SSO_COOKIE_DOMAIN") %>
domain: <%= ENV["SSO_COOKIE_DOMAIN"] %>
<% end %>
secure: <%= ActiveModel::Type::Boolean.new.cast ENV.fetch(
"SSO_COOKIE_SECURE", false
) %>
Expand Down Expand Up @@ -147,7 +149,6 @@ test:
cookie:
name: ox
options:
domain: ''
secure: false
httponly: true

Expand Down

0 comments on commit 143f4fd

Please sign in to comment.