Add SAML metadata refresh control flag

mattdrayer: Change model fieldname, revise code, fix bad tests.
This commit is contained in:
Matt Drayer
2017-03-28 16:00:26 -04:00
parent 4ef009cf4f
commit b64503848c
6 changed files with 111 additions and 50 deletions

View File

@@ -347,6 +347,9 @@ class SAMLProviderConfig(ProviderConfig):
attr_email = models.CharField(
max_length=128, blank=True, verbose_name="Email Attribute",
help_text="URN of SAML attribute containing the user's email address[es]. Leave blank for default.")
automatic_refresh_enabled = models.BooleanField(
default=True, verbose_name="Enable automatic metadata refresh",
help_text="When checked, the SAML provider's metadata will be included in the automatic refresh job, if configured.")
debug_mode = models.BooleanField(
default=False, verbose_name="Debug Mode",
help_text=(