0001-handle-the-case-when-authorized_scopes-have-null-val.patch
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 |
- |