Commit f495f219 by Carlos Andrés Rocha

Update common/djangoapps/external_auth/views.py

Corrected comments on OpenID temporal fix
parent a88a8577
...@@ -488,16 +488,16 @@ def provider_login(request): ...@@ -488,16 +488,16 @@ def provider_login(request):
url = endpoint + urlquote(user.username) url = endpoint + urlquote(user.username)
response = openid_request.answer(True, None, url) response = openid_request.answer(True, None, url)
# TODO: for CS50 we are forcibly returning only the # TODO: for CS50 we are forcibly returning the username
# username. Following the OpenID simple registration # instead of fullname. In the OpenID simple registration
# extension, we don't have to return any fields we don't # extension, we don't have to return any fields we don't
# want to, even if they were marked as required by the # want to, even if they were marked as required by the
# Consumer. The behavior of what to do when there are # Consumer. The behavior of what to do when there are
# missing fields is up to the Consumer. The proper change # missing fields is up to the Consumer. The proper change
# will only return the username, however this will likely # should only return the username, however this will likely
# break the CS50 client. Temporarily we will be returning # break the CS50 client. Temporarily we will be returning
# username filling in for email and fullname in addition # username filling in for fullname in addition to username
# to username as sreg nickname. # as sreg nickname.
results = { results = {
'nickname': user.username, 'nickname': user.username,
'email': user.email, 'email': user.email,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment