Example #1
0
 def createUser(self, externalUser):
     #UserModel
     user = User()
     user.first_name = externalUser['name']['givenName']
     user.last_name = externalUser['name']['familyName']
     user.email_address = externalUser['emails'][0]['value']
     user.save()
     return user
Example #2
0
 def createUser(self, externalUser):
     #UserModel
     user = User()
     user.first_name = externalUser['first_name']
     user.last_name = externalUser['last_name']
     user.email_address = externalUser['email']
     user.save()
     return user
Example #3
0
 def createUser (self, externalUser) :
     #UserModel 
     user = User();
     user.first_name = externalUser['name']['givenName'];
     user.last_name = externalUser['name']['familyName'];  
     user.email_address = externalUser['emails'][0]['value'];
     user.save();
     return user;
Example #4
0
 def createUser (self, externalUser) :
     #UserModel 
     user = User();
     user.first_name = externalUser['first_name'];
     user.last_name = externalUser['last_name'];  
     user.email_address = externalUser['email'];      
     user.save();
     return user;