Skip to content

Commit

Permalink
[MOVER-1714] fix the missing conditional of metadata_inline in the en…
Browse files Browse the repository at this point in the history
…v var (#12)
  • Loading branch information
Isaben authored Aug 12, 2021
1 parent 202d45b commit 825885e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django_saml2_auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ def _get_saml_client(domain, metadata_conf_url, metadata_conf_raw=None):
# settings.SAML2_AUTH['METADATA_AUTO_CONF_URL'] = metadata_conf_url
if metadata_conf_raw:
metadata = {'inline': [metadata_conf_raw]}
elif 'METADATA_INLINE' in settings.SAML2_AUTH:
metadata = {'inline': [settings.SAML2_AUTH['METADATA_INLINE']]}
else:
metadata = {
'remote': [
Expand Down

0 comments on commit 825885e

Please sign in to comment.