1. domruf
  2. collective.weblogin
Issue #1 resolved

find a way to use the email for user id

domruf
repo owner created an issue

currently when using google to login the user id is a URL https://www.google.com/accounts/o8/id?id=XXX

instead the email should be used

Comments (2)

  1. domruf reporter

    With the Attribute exchange extension I can get the email from some openid providers. (i.e. google)

            ax_request = ax.FetchRequest()
            ax_request.add(
                ax.AttrInfo('http://schema.openid.net/contact/email',
                            required=True))
            auth_request.addExtension(ax_request)
    

    theoretically I should also be able to get the email with

            sreg_request = sreg.SRegRequest(
                required=['nickname'], optional=['fullname', 'email'])
            auth_request.addExtension(sreg_request)
    

    but I know no provider yet who supports this.

    The problem with this approach is the fact that I have to patch plone.openid.

  2. Log in to comment