code: def set_token(self):
          
          super(UserPassCredentials, self).set_token()
          try:
              token = self._context.acquire_token_with_username_password(
                  self.resource,
                  self.username,
                  self.password,
                  self.id
              )
              self.token = self._convert_token(token)
          except adal.AdalError as err:
              raise_with_traceback(AuthenticationError, "", err)
docs: Get token using Username/Password credentials.
  
          :raises: AuthenticationError if credentials invalid, or call fails.