Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-openid-auth
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-openid-auth
Commits
22df0cca
Commit
22df0cca
authored
Jul 21, 2010
by
James Henstridge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Process obsolete attributes from myOpenID.
parent
648b97a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
+12
-1
django_openid_auth/auth.py
+11
-0
django_openid_auth/views.py
+1
-1
No files found.
django_openid_auth/auth.py
View file @
22df0cca
...
...
@@ -102,6 +102,17 @@ class OpenIDBackend:
# them in preference.
fetch_response
=
ax
.
FetchResponse
.
fromSuccessResponse
(
openid_response
)
if
fetch_response
:
# The myOpenID provider advertises AX support, but uses
# attribute names from an obsolete draft of the
# specification. We check for them first so the common
# names take precedence.
email
=
fetch_response
.
getSingle
(
'http://schema.openid.net/contact/email'
,
email
)
fullname
=
fetch_response
.
getSingle
(
'http://schema.openid.net/namePerson'
,
fullname
)
nickname
=
fetch_response
.
getSingle
(
'http://schema.openid.net/namePerson/friendly'
,
nickname
)
email
=
fetch_response
.
getSingle
(
'http://axschema.org/contact/email'
,
email
)
fullname
=
fetch_response
.
getSingle
(
...
...
django_openid_auth/views.py
View file @
22df0cca
...
...
@@ -178,7 +178,7 @@ def login_begin(request, template_name='openid/login.html',
(
'http://axschema.org/namePerson/first'
,
'firstname'
),
(
'http://axschema.org/namePerson/last'
,
'lastname'
),
(
'http://axschema.org/namePerson/friendly'
,
'nickname'
),
# The myOpenID provider advertise
d
AX support, but uses
# The myOpenID provider advertise
s
AX support, but uses
# attribute names from an obsolete draft of the
# specification. We request them for compatibility.
(
'http://schema.openid.net/contact/email'
,
'old_email'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment