-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove apply_conf.sh
script
#103
Merged
peppelinux
merged 4 commits into
italia:eudi
from
salvatorelaiso:remove-apply-conf-script
Jan 22, 2024
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
MONGO_DBUSER=satosa | ||
MONGO_DBPASSWORD=thatpassword | ||
HOSTNAME=localhost | ||
KEYS_FOLDER=./pki | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
#!/bin/bash | ||
|
||
bash apply_conf.sh | ||
# get IDEM MDQ key | ||
if [[ $GET_IDEM_MDQ_KEY == true ]]; then | ||
wget https://mdx.idem.garr.it/idem-mdx-service-crt.pem -O $KEYS_FOLDER/idem-mdx-service-crt.pem | ||
wget https://registry.spid.gov.it/metadata/idp/spid-entities-idps.xml -O metadata/idp/spid-entities-idps.xml | ||
echo "Downloaded IDEM MDQ key" | ||
fi | ||
|
||
uwsgi --ini /satosa_proxy/uwsgi_setup/uwsgi/uwsgi.ini.docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ config: | |
# idp_blacklist_file: /path/to/blacklist.json | ||
|
||
# error templates | ||
static_storage_url: "https://localhost/static" | ||
static_storage_url: !ENV SATOSA_BASE_STATIC | ||
error_template: "spid_login_error.html" | ||
template_folder: "templates" # project root | ||
|
||
|
@@ -28,33 +28,33 @@ config: | |
# "https://identity.infocert.it": 'https://www.spid.gov.it/SpidL1' | ||
|
||
sp_config: | ||
key_file: ./pki/privkey.pem | ||
cert_file: ./pki/cert.pem | ||
key_file: !ENV SATOSA_PRIVATE_KEY | ||
cert_file: !ENV SATOSA_PUBLIC_KEY | ||
encryption_keypairs: | ||
- {'key_file': ./pki/privkey.pem, 'cert_file': ./pki/cert.pem} | ||
- {'key_file': !ENV SATOSA_PRIVATE_KEY, 'cert_file': !ENV SATOSA_PUBLIC_KEY} | ||
|
||
attribute_map_dir: 'attributes-map' | ||
|
||
organization: | ||
display_name: | ||
- [ 'change with $SATOSA_ORGANIZATION_DISPLAY_NAME_EN', 'en'] | ||
- [ 'change with $SATOSA_ORGANIZATION_DISPLAY_NAME_IT', 'it'] | ||
- [ !ENV SATOSA_ORGANIZATION_DISPLAY_NAME_EN, 'en'] | ||
- [ !ENV SATOSA_ORGANIZATION_DISPLAY_NAME_IT, 'it'] | ||
name: | ||
- [ 'change with $SATOSA_ORGANIZATION_NAME_EN', 'en'] | ||
- [ 'change with $SATOSA_ORGANIZATION_NAME_IT', 'it'] | ||
- [ !ENV SATOSA_ORGANIZATION_NAME_EN, 'en'] | ||
- [ !ENV SATOSA_ORGANIZATION_NAME_IT, 'it'] | ||
url: | ||
- [ 'https://change_with_SATOSA_ORGANIZATION_URL_EN', 'en'] | ||
- [ 'https://change_with_SATOSA_ORGANIZATION_URL_IT', 'it'] | ||
- [ !ENV SATOSA_ORGANIZATION_URL_EN, 'en'] | ||
- [ !ENV SATOSA_ORGANIZATION_URL_IT, 'it'] | ||
|
||
contact_person: | ||
- contact_type: 'administrative' | ||
company: change_with_SATOSA_ORGANIZATION_NAME_IT | ||
email_address: [email protected] | ||
telephone_number: change_with_SATOSA_CONTACT_PERSON_TELEPHONE_NUMBER | ||
company: !ENV SATOSA_ORGANIZATION_NAME_IT | ||
email_address: !ENV SATOSA_CONTACT_PERSON_EMAIL_ADDRESS | ||
telephone_number: !ENV SATOSA_CONTACT_PERSON_TELEPHONE_NUMBER | ||
cie_info: | ||
Public: '' | ||
IPACode: ispra_rm | ||
Municipality: H501 | ||
IPACode: !ENV SATOSA_CONTACT_PERSON_IPA_CODE | ||
Municipality: !ENV SATOSA_CONTACT_PERSON_MUNICIPALITY | ||
|
||
|
||
metadata: | ||
|
@@ -72,28 +72,28 @@ config: | |
ui_info: | ||
display_name: | ||
- lang: en | ||
text: change with $SATOSA_UI_DISPLAY_NAME_EN | ||
text: !ENV SATOSA_UI_DISPLAY_NAME_EN | ||
- lang: it | ||
text: change with $SATOSA_UI_DISPLAY_NAME_IT | ||
text: !ENV SATOSA_UI_DISPLAY_NAME_IT | ||
description: | ||
- lang: en | ||
text: change with $SATOSA_UI_DESCRIPTION_EN | ||
text: !ENV SATOSA_UI_DESCRIPTION_EN | ||
- lang: it | ||
text: change with $SATOSA_UI_DESCRIPTION_IT | ||
text: !ENV SATOSA_UI_DESCRIPTION_IT | ||
information_url: | ||
- lang: en | ||
text: change with $SATOSA_UI_INFORMATION_URL_EN | ||
- lang: it | ||
text: change with $SATOSA_UI_INFORMATION_URL_IT | ||
text: !ENV SATOSA_UI_INFORMATION_URL_EN | ||
- lang: it | ||
text: !ENV SATOSA_UI_INFORMATION_URL_IT | ||
privacy_statement_url: | ||
- lang: en | ||
text: change with $SATOSA_UI_PRIVACY_URL_EN | ||
text: !ENV SATOSA_UI_PRIVACY_URL_EN | ||
- lang: it | ||
text: change with $SATOSA_UI_PRIVACY_URL_IT | ||
text: !ENV SATOSA_UI_PRIVACY_URL_IT | ||
logo: | ||
text: change with $SATOSA_UI_LOGO_URL | ||
width: change with $SATOSA_UI_LOGO_WIDTH | ||
height: change with $SATOSA_UI_LOGO_HEIGHT | ||
text: !ENV SATOSA_UI_LOGO_URL | ||
width: !ENV SATOSA_UI_LOGO_WIDTH | ||
height: !ENV SATOSA_UI_LOGO_HEIGHT | ||
|
||
# sign dig and enc | ||
authn_requests_signed: true | ||
|
@@ -124,7 +124,7 @@ config: | |
'dateOfBirth', | ||
'fiscalNumber', | ||
] | ||
|
||
requested_attributes: !ENV SATOSA_REQUESTED_ATTRIBUTES | ||
#optional_attributes: ['gender', | ||
# 'companyName', | ||
# 'registeredOffice', | ||
|
@@ -147,4 +147,4 @@ config: | |
- [<base_url>/<name>/disco, 'urn:oasis:names:tc:SAML:profiles:SSO:idp-discovery-protocol'] | ||
|
||
# disco_srv must be defined if there is more than one IdP in the metadata specified above | ||
disco_srv: "https://sso.isprambiente.it/static/disco.html" | ||
disco_srv: !ENV SATOSA_DISCO_SRV |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@salvatorelaiso metti qui tutte le variabili con dati di esempio per la demo?
ti risolvi problemi durante i collaudi per i campi richiesti dal metadata
i collaudi ovviamente richiedono i test su spid-saml-check