Skip to content

Commit

Permalink
fix #125 - SATOSA_REQUESTED_ATTRIBUTES env splitted in SATOSA_REQUEST…
Browse files Browse the repository at this point in the history
…ED_SPID_ATTRIBUTES and SATOSA_REQUESTED_CIE_ATTRIBUTES
  • Loading branch information
MdreW committed Feb 22, 2024
1 parent 138e9f5 commit 05c1f27
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Docker-compose/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ SATOSA_UI_LOGO_WIDTH="80"
SATOSA_UI_LOGO_URL="https://example_organization.org/logo.png"
SATOSA_UI_PRIVACY_URL_EN="https://example_organization.org/privacy"
SATOSA_UI_PRIVACY_URL_IT="https://example_organization.org/it/privacy"
SATOSA_REQUESTED_ATTRIBUTES=[]
SATOSA_REQUESTED_SPID_ATTRIBUTES=[]
SATOSA_REQUESTED_CIE_ATTRIBUTES=[]

# If set to true, satosa downloads IDEM's keys and IDPs from registry.spid.gov.it
GET_IDEM_MDQ_KEY=true
3 changes: 2 additions & 1 deletion Docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ services:
- SATOSA_UI_PRIVACY_URL_EN=${SATOSA_UI_PRIVACY_URL_EN:-https://example_organization.org/privacy}
- SATOSA_UI_PRIVACY_URL_IT=${SATOSA_UI_PRIVACY_URL_IT:-https://example_organization.org/it/privacy}
- SATOSA_USER_ID_HASH_SALT=${SATOSA_USER_ID_HASH_SALT:-CHANGE_ME!}
- SATOSA_REQUESTED_ATTRIBUTES=${SATOSA_REQUESTED_ATTRIBUTES:-[]}
- SATOSA_REQUESTED_SPID_ATTRIBUTES=${SATOSA_REQUESTED_SPID_ATTRIBUTES:-[]}
- SATOSA_REQUESTED_CIE_ATTRIBUTES=${SATOSA_REQUESTED_CIE_ATTRIBUTES:-[]}

- GET_IDEM_MDQ_KEY=${GET_IDEM_MDQ_KEY:-true}
expose:
Expand Down
2 changes: 1 addition & 1 deletion example/plugins/backends/ciesaml2_backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ config:
'dateOfBirth',
'fiscalNumber',
]
requested_attributes: !ENV SATOSA_REQUESTED_ATTRIBUTES
requested_attributes: !ENV SATOSA_REQUESTED_CIE_ATTRIBUTES
#optional_attributes: ['gender',
# 'companyName',
# 'registeredOffice',
Expand Down
2 changes: 1 addition & 1 deletion example/plugins/backends/spidsaml2_backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ config:

# this instantiate the attribute_consuming_service
required_attributes: ['spidCode', 'name', 'familyName', 'fiscalNumber', 'email']
requested_attributes: !ENV SATOSA_REQUESTED_ATTRIBUTES
requested_attributes: !ENV SATOSA_REQUESTED_SPID_ATTRIBUTES
#optional_attributes: ['gender',
# 'companyName',
# 'registeredOffice',
Expand Down

0 comments on commit 05c1f27

Please sign in to comment.