Search code examples
pythongoogle-app-enginegoogle-cloud-platformwebapp2

How to pass multiple auth ids e.g password and email, to the user_create method of the "webApp2_extras" user model?


def create_user(cls, auth_id, unique_properties=None, **user_values):
        """Creates a new user.

        :param auth_id:
            A string that is unique to the user. Users may have multiple
            auth ids. Example auth ids:

            - own:username
            - own:email@example.com
            - google:username
            - yahoo:username

Please help explain what I am doing wrong when I just want to pass multiple authentication IDs


Solution

  • You can use the User.add_auth_id(auth_id) function to add additional authentication IDs after the User is created.