def extract_client_login_token(http_body, scopes):
 token_string = get_client_login_token(http_body)
 token = ClientLoginToken(scopes=scopes)
 token.set_token_string(token_string)
 return token

def extract_client_login_token ( http_body , scopes ) : token_string = get_client_login_token ( http_body ) token = ClientLoginToken ( scopes = scopes ) token . set_token_string ( token_string ) return token
parses the servers response and returns a clientlogintoken .