djangosaml2
djangosaml2 copied to clipboard
AttributeError when using the example SAML_CONFIG value
Adding the SAML_CONFIG from https://djangosaml2.readthedocs.io/contents/setup.html#pysaml2-specific-files-and-configuration and changing the values to my needs, i get AttributeErrors when pysaml2 goes to parse the confi
File "VENV\lib\site-packages\djangosaml2\conf.py", line 71, in get_config
return config_loader(request)
File "VENV\lib\site-packages\djangosaml2\conf.py", line 48, in config_settings_loader
conf.load(copy.deepcopy(settings.SAML_CONFIG))
File "VENV\lib\site-packages\pysaml2-7.1.2-py3.8.egg\saml2\config.py", line 338, in load
self.load_complex(cnf)
File "VENV\lib\site-packages\pysaml2-7.1.2-py3.8.egg\saml2\config.py", line 277, in load_complex
policy_conf = spec.get("policy")
AttributeError: 'int' object has no attribute 'get'
That particular line is hitting
"debug": 1
from the conf
After checking with the pysaml2 docs at https://github.com/IdentityPython/pysaml2/blob/master/example/sp-repoze/sp_conf.py.example it looks like most of the info just needs to be moved out of the "service" dict. if that is indeed the case, i can make a PR if it helps