This commit is contained in:
kkmanos 2021-12-07 17:11:10 +02:00
parent bc8f53859d
commit ec2fa462b1
2 changed files with 4 additions and 2 deletions

View file

@ -110,7 +110,7 @@ class Setting(db.Model):
'oidc_oauth_email': 'email',
'oidc_oauth_account_name_property': '',
'oidc_oauth_account_description_property': '',
'saml_enabled': False,
'saml_enabled': True,
'saml_debug': True,
'saml_metadata_url': 'https://example.com/metadata.xml',
'saml_metadata_cache_lifetime': '1',

View file

@ -22,7 +22,7 @@ from ..models.domain_template import DomainTemplate
from ..models.domain_template_record import DomainTemplateRecord
from ..models.api_key import ApiKey
from ..models.base import db
from ..services.saml import SAML
from ..lib.schema import ApiPlainKeySchema
apikey_plain_schema = ApiPlainKeySchema(many=True)
@ -1694,6 +1694,8 @@ def setting_authentication():
'msg':
'Saved successfully. Please reload PDA to take effect.'
}
global saml
saml = SAML()
else:
return abort(400)