hobo: mark that the idp manages the user attributes (#10141)
This commit is contained in:
parent
4b4fc2f840
commit
83d9ba371d
|
@ -198,16 +198,17 @@ class CmdCheckHobos(Command):
|
|||
elif not idps and not 'password' in methods:
|
||||
methods.append('password')
|
||||
pub.cfg['identification']['methods'] = methods
|
||||
if not pub.cfg.get('sp'):
|
||||
pub.cfg['sp'] = {}
|
||||
pub.cfg['sp']['idp-manage-user-attributes'] = bool(idps)
|
||||
pub.write_cfg()
|
||||
|
||||
if not idps:
|
||||
return
|
||||
|
||||
# initialize service provider side
|
||||
if not pub.cfg.get('sp', {}).get('publickey'):
|
||||
if not pub.cfg['sp'].get('publickey'):
|
||||
from qommon.ident.idp import MethodAdminDirectory
|
||||
if not pub.cfg.get('sp'):
|
||||
pub.cfg['sp'] = {}
|
||||
spconfig = pub.cfg['sp']
|
||||
spconfig['saml2_base_url'] = str(service.get('base_url')) + '/saml'
|
||||
spconfig['saml2_providerid'] = spconfig['saml2_base_url'] + '/metadata'
|
||||
|
|
Loading…
Reference in New Issue