def ValidateAuthTokenClient(self, token):
    if not self.client_creds:
      return None
    if not self.GetNonce(token.nonce):
      # Nonce was not generated before!
      return None
    if not self.client_creds.HasUser(token.username):
      # No such user.
      return None
    password = self.client_creds.GetPassword(token.username)
    generated_hash = self._GenerateAuthHash(token.nonce, token.username,
                                            password)
    if token.hash != generated_hash:
      return None
    return self.client_creds.GetPermissions(token.username)
Symbolic forward pass
dataset/ETHPy150Open google/grr/grr/server/data_server/auth.py/NonceStore.ValidateAuthTokenClient--crossover with--dataset/ETHPy150Open LxMLS/lxmls-toolkit/lxmls/deep_learning/mlp.py/TheanoMLP._forward