Projet

Général

Profil

0001-handle-the-case-when-authorized_scopes-have-null-val.patch

Serghei Mihai (congés, retour 15/05), 14 août 2014 14:18

Télécharger (951 octets)

Voir les différences:

Subject: [PATCH] handle the case when authorized_scopes have null value

 authentic2_idp_oauth2/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
authentic2_idp_oauth2/views.py
90 90
    def get_authorization_form(self, request, client, data, client_data):
91 91

  
92 92
        automatic_grant = app_settings.AUTOMATIC_GRANT
93
        if hasattr(client, 'a2client'):
93
        if hasattr(client, 'a2client') and client.a2client.authorized_scopes:
94 94
            client_scopes = client.a2client.authorized_scopes.split(' ')
95 95
            automatic_grant += ((client.url, client_scopes),)
96 96

  
97
-