]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/openidauth/authentication.py
General cleanup. Moved many hardcoded stuff still left in the code to an admin option...
[osqa.git] / forum_modules / openidauth / authentication.py
index c82b99eda3d7971d16e8d65823f0a6c6c0474714..6802cb049815b0460ad5b6804df8d43fb63819da 100644 (file)
@@ -44,6 +44,13 @@ class AolAuthContext(ConsumerTemplateContext):
 
 
 class MyOpenIdAuthConsumer(OpenIdAbstractAuthConsumer):
+    dataype2ax_schema = {
+        'username': ('http://schema.openid.net/namePerson/friendly', 'friendly'),
+        'email': 'http://schema.openid.net/contact/email',
+        'web': 'http://schema.openid.net/contact/web/default',
+        'birthdate': ('http://schema.openid.net/birthDate', 'birthDate'),
+    }
+
     def get_user_url(self, request):
         blog_name = request.POST['input_field']
         return "http://%s.myopenid.com/" % blog_name