sreg_request sreg SRegRequest optional nickname required email auth_re

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
sreg_request = sreg.SRegRequest(optional=['nickname'],
required=['email'])
auth_request.addExtension(sreg_request)
ax_request = ax.FetchRequest()
ax_request.add(
ax.AttrInfo('http://schema.openid.net/namePerson', required=True))
ax_request.add(
ax.AttrInfo('http://schema.openid.net/contact/web/default',
required=False, count=ax.UNLIMITED_VALUES))
auth_request.addExtension(ax_request)