Projet

Général

Profil

0001-hobo-mark-that-the-idp-manages-the-user-attributes-1.patch

Frédéric Péters, 02 mars 2016 11:18

Télécharger (1,38 ko)

Voir les différences:

Subject: [PATCH] hobo: mark that the idp manages the user attributes (#10141)

 wcs/ctl/check_hobos.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
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
-