Skip to content

Commit

Permalink
Fixed saml2 auth
Browse files Browse the repository at this point in the history
  • Loading branch information
crisingulani committed Sep 3, 2024
1 parent c9445d3 commit 65c4104
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions backend/pzserver/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,12 @@
"email": ("email",),
}

METADATAS = str(os.getenv("IDP_METADATA")).split(",")
METADATA_URLS = []

for metadata in METADATAS:
METADATA_URLS.append({"url": metadata, "cert": None})

SAML_CONFIG = {
# Biblioteca usada para assinatura e criptografia
"xmlsec_binary": "/usr/bin/xmlsec1",
Expand Down Expand Up @@ -411,10 +417,10 @@
},
# Indica onde os metadados podem ser encontrados
"metadata": {
"remote": [{"url": os.getenv("IDP_METADATA"), "cert": None}],
"remote": METADATA_URLS,
# "local": [os.getenv("IDP_METADATA")],
},
"debug": os.getenv("DEBUG", 1),
"debug": os.getenv("DEBUG", "1"),
# Signature
"key_file": SIG_KEY_PEM, # private part
"cert_file": SIG_CERT_PEM, # public part
Expand Down

0 comments on commit 65c4104

Please sign in to comment.