Revision cfeed898
Added by Serghei Mihai over 8 years ago
ckanext/ozwillo_pyoidc/conf.py | ||
---|---|---|
32 | 32 |
}, |
33 | 33 |
"behaviour": { |
34 | 34 |
"response_type": "code", |
35 |
"scope": ["openid", "profile", "email"]
|
|
35 |
"scope": ["openid", "profile"] |
|
36 | 36 |
}, |
37 | 37 |
"allow": { |
38 | 38 |
"issuer_mismatch": True |
ckanext/ozwillo_pyoidc/plugin.py | ||
---|---|---|
125 | 125 |
log.info('Received userinfo: %s' % userinfo) |
126 | 126 |
userobj = model.User.get(userinfo['sub']) |
127 | 127 |
if userobj: |
128 |
userobj.email = userinfo['email'] |
|
129 | 128 |
if 'given_name' in userinfo: |
130 | 129 |
userobj.fullname = userinfo['given_name'] |
131 | 130 |
if 'family_name' in userinfo: |
Also available in: Unified diff
useless scope removed