Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

Commit

Permalink
Merge pull request #117 from lyft/fix-saml
Browse files Browse the repository at this point in the history
Added want_attribute_statement parameter for saml
  • Loading branch information
vivianho authored Feb 9, 2017
2 parents cb1b26f + 3148710 commit 95065eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions confidant/authnz/userauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,8 @@ def _render_saml_settings_dict(self):
'wantAssertionsSigned':
app.config['SAML_SECURITY_ASSERTIONS_SIGNED'],
'wantNameIdEncrypted': False,
'wantAttributeStatement':
app.config['SAML_WANT_ATTRIBUTE_STATEMENT'],
"signatureAlgorithm": app.config['SAML_SECURITY_SIG_ALGO'],
}

Expand Down
2 changes: 2 additions & 0 deletions confidant/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ def _bootstrap(secrets):
# Whether to require signatures on individual SAML response assertion fields
SAML_SECURITY_ASSERTIONS_SIGNED = bool_env('SAML_SECURITY_ASSERTIONS_SIGNED',
False)
# Whether you want an attribute statement from the SAML assertion
SAML_WANT_ATTRIBUTE_STATEMENT = bool_env('SAML_WANT_ATTRIBUTE_STATEMENT', True)

# Catchall to provide JSON directly to override SAML settings. Will be provided
# to OneLogin_Saml2_Auth() for initialization, merging into values set by the
Expand Down

0 comments on commit 95065eb

Please sign in to comment.