0001-hobo-mark-that-the-idp-manages-the-user-attributes-1.patch
wcs/ctl/check_hobos.py | ||
---|---|---|
198 | 198 |
elif not idps and not 'password' in methods: |
199 | 199 |
methods.append('password') |
200 | 200 |
pub.cfg['identification']['methods'] = methods |
201 |
if not pub.cfg.get('sp'): |
|
202 |
pub.cfg['sp'] = {} |
|
203 |
pub.cfg['sp']['idp-manage-user-attributes'] = bool(idps) |
|
201 | 204 |
pub.write_cfg() |
202 | 205 | |
203 | 206 |
if not idps: |
204 | 207 |
return |
205 | 208 | |
206 | 209 |
# initialize service provider side |
207 |
if not pub.cfg.get('sp', {}).get('publickey'):
|
|
210 |
if not pub.cfg['sp'].get('publickey'):
|
|
208 | 211 |
from qommon.ident.idp import MethodAdminDirectory |
209 |
if not pub.cfg.get('sp'): |
|
210 |
pub.cfg['sp'] = {} |
|
211 | 212 |
spconfig = pub.cfg['sp'] |
212 | 213 |
spconfig['saml2_base_url'] = str(service.get('base_url')) + '/saml' |
213 | 214 |
spconfig['saml2_providerid'] = spconfig['saml2_base_url'] + '/metadata' |
214 |
- |