retrieve proxy from openid
[qcg-portal.git] / qcg / views.py
index bff6d17..eb54d58 100644 (file)
@@ -12,16 +12,16 @@ def index(request):
     return render(request, 'qcg/base.html')
 
 
-def openid_login(request):
+def openid_begin(request):
     openid_request = make_consumer(request).begin(settings.OPENID_SSO_SERVER_URL)
 
     fetch_request = ax.FetchRequest()
     for (attr, alias) in [('http://axschema.org/namePerson/friendly', 'nickname'),
                           ('http://axschema.org/contact/email', 'email'),
                           ('http://axschema.org/namePerson', 'fullname'),
-                          # ('http://openid.plgrid.pl/certificate/proxy', 'proxy'),
-                          # ('http://openid.plgrid.pl/certificate/userCert', 'userCert'),
-                          # ('http://openid.plgrid.pl/certificate/proxyPrivKey', 'proxyPrivKey'),
+                          ('http://openid.plgrid.pl/certificate/proxy', 'proxy'),
+                          ('http://openid.plgrid.pl/certificate/userCert', 'userCert'),
+                          ('http://openid.plgrid.pl/certificate/proxyPrivKey', 'proxyPrivKey'),
                           ('http://openid.plgrid.pl/POSTresponse', 'POSTresponse')]:
         fetch_request.add(ax.AttrInfo(attr, alias=alias, required=True))
     openid_request.addExtension(fetch_request)