'Return the identifier that should be sent as the
openid.identity parameter to the server.'

def getLocalID(self):

    if (self.local_id is self.canonicalID is None):
        return self.claimed_id
    else:
        return (self.local_id or self.canonicalID)
