Skip to content

Commit

Permalink
Update cookie config
Browse files Browse the repository at this point in the history
  • Loading branch information
dewmini committed Nov 29, 2023
1 parent 67e50b6 commit 7d219c6
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,7 @@ security.core.affiliation-survey.enabled={{affiliation_survey_enabled | default
userdetails.url={{ userdetails_url | default('https://auth.ala.org.au/userdetails') }}
userdetails.web.url={{ userdetails_web_url | default('https://auth.ala.org.au/userdetails/') }}
userdetails.api.url={{ userdetails_api_url | default('https://api.ala.org.au/userdetails/') }}

security.core.authCookieName={{ auth_cookie_name | default('ALA-Auth') }}
security.cookie.enabled={{auth_cookie_enabled | default ('false')}}
security.cookie.domain={{auth_cookie_domain | default ('.ala.org.au')}}
5 changes: 5 additions & 0 deletions ansible/roles/ecodata/templates/ecodata-config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,8 @@ userdetails.url={{ userdetails_url | default('https://auth.ala.org.au/userdetail
security.core.affiliation-survey.enabled={{affiliation_survey_enabled | default ('false')}}
userdetails.web.url={{ userdetails_web_url | default('https://auth.ala.org.au/userdetails/') }}
userdetails.api.url={{ userdetails_api_url | default('https://api.ala.org.au/userdetails/') }}

security.core.authCookieName={{ auth_cookie_name | default('ALA-Auth') }}
security.cookie.enabled={{auth_cookie_enabled | default ('false')}}
security.cookie.domain={{auth_cookie_domain | default ('.ala.org.au')}}

4 changes: 4 additions & 0 deletions ansible/roles/fieldguide/templates/fieldguide-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,14 @@ security:
# cognito specific configs
{% if auth_system is defined and auth_system == 'cognito' %}
core:
authCookieName: {{ auth_cookie_name | default('ALA-Auth') }}
roleAttribute: {{ roleAttribute | default('') }}
affiliation-survey:
enabled: {{affiliation_survey_enabled | default ('false')}}
{% endif %}
cookie:
enabled: { { auth_cookie_enabled | default('false') } }
domain: { { auth_cookie_domain | default('.ala.org.au') } }
cas:
casServerName: {{auth_base_url}}
loginUrl: {{auth_cas_url}}/login
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ security:
roleAttribute: {{ security_core_roleAttribute | default('role') }}
affiliation-survey:
enabled: {{affiliation_survey_enabled | default ('false')}}
cookie:
enabled: { { auth_cookie_enabled | default('false') } }
domain: { { auth_cookie_domain | default('.ala.org.au') } }
cas:
enabled: {{ security_cas_enabled | default(true) }}
appServerName: "{{image_service_base_url}}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,8 @@ security.core.affiliation-survey.enabled={{affiliation_survey_enabled | default
userdetails.url={{ userdetails_url | default('https://auth.ala.org.au/userdetails') }}
userdetails.web.url={{ userdetails_web_url | default('https://auth.ala.org.au/userdetails/') }}
userdetails.api.url={{ userdetails_api_url | default('https://api.ala.org.au/userdetails/') }}

security.core.authCookieName={{ auth_cookie_name | default('ALA-Auth') }}
security.cookie.enabled={{auth_cookie_enabled | default ('false')}}
security.cookie.domain={{auth_cookie_domain | default ('.ala.org.au')}}

5 changes: 5 additions & 0 deletions ansible/roles/merit/templates/fieldcapture-config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,8 @@ userdetails.url={{ userdetails_url | default('https://auth.ala.org.au/userdetail
security.core.affiliation-survey.enabled={{affiliation_survey_enabled | default ('false')}}
userdetails.web.url={{ userdetails_web_url | default('https://auth.ala.org.au/userdetails/') }}
userdetails.api.url={{ userdetails_api_url | default('https://api.ala.org.au/userdetails/') }}

security.core.authCookieName={{ auth_cookie_name | default('ALA-Auth') }}
security.cookie.enabled={{auth_cookie_enabled | default ('false')}}
security.cookie.domain={{auth_cookie_domain | default ('.ala.org.au')}}

Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,8 @@ userdetails.url={{ userdetails_url | default('https://auth.ala.org.au/userdetail
security.core.affiliation-survey.enabled={{affiliation_survey_enabled | default ('false')}}
userdetails.web.url={{ userdetails_web_url | default('https://auth.ala.org.au/userdetails/') }}
userdetails.api.url={{ userdetails_api_url | default('https://api.ala.org.au/userdetails/') }}

security.core.authCookieName={{ auth_cookie_name | default('ALA-Auth') }}
security.cookie.enabled={{auth_cookie_enabled | default ('false')}}
security.cookie.domain={{auth_cookie_domain | default ('.ala.org.au')}}

Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,13 @@ grails.cors.allowedOrigins[1]=https://bie-test.ala.org.au
fathom.api.url={{ fathom_api_url | default('https://api.usefathom.com/v1/aggregations') }}
fathom.api.key={{ fathom_api_key }}
fathom.site-id={{ fathom_site_id }}
fathom.hostname={{ profile_hub_base_url }}
fathom.hostname={{ profile_hub_base_url }}

userdetails.url={{ userdetails_url | default('https://auth.ala.org.au/userdetails') }}
security.core.affiliation-survey.enabled={{affiliation_survey_enabled | default ('false')}}
userdetails.web.url={{ userdetails_web_url | default('https://auth.ala.org.au/userdetails/') }}
userdetails.api.url={{ userdetails_api_url | default('https://api.ala.org.au/userdetails/') }}

security.core.authCookieName={{ auth_cookie_name | default('ALA-Auth') }}
security.cookie.enabled={{auth_cookie_enabled | default ('false')}}
security.cookie.domain={{auth_cookie_domain | default ('.ala.org.au')}}
3 changes: 3 additions & 0 deletions ansible/roles/userdetails/templates/userdetails-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ security:
affiliation-survey:
enabled: {{affiliation_survey_enabled | default ('false')}}
{% endif %}
cookie:
enabled: {{ auth_cookie_enabled | default('false') }}
domain: {{ auth_cookie_domain | default('.ala.org.au') }}
cas:
enabled: {{ userdetails_use_cas | default('true') }}
{% if userdetails_use_cas | default('true') %}
Expand Down

0 comments on commit 7d219c6

Please sign in to comment.