| |
@@ -212,8 +212,11 @@
|
| |
return self._template('openid/consent_form.html', **context)
|
| |
|
| |
def _response(self, request, session):
|
| |
- user = session.get_user()
|
| |
- identity_url = self.cfg.identity_url_template % {'username': user.name}
|
| |
+ # we could use `session.get_user().name` here but when authenticated
|
| |
+ # via email, .name corresponds to email instead of an actual username
|
| |
+ # https://pagure.io/ipsilon/issue/358
|
| |
+ userattrs = session.get_user_attrs()
|
| |
+ identity_url = self.cfg.identity_url_template % {'username': userattrs['_username']}
|
| |
response = request.answer(
|
| |
True,
|
| |
identity=identity_url,
|
| |
Fixes: https://pagure.io/ipsilon/issue/358
I welcome guidance regarding testing since I'm not entirely sure how ipsilon obtains all the FAS data.