def verify_token(self, token):
        '''
        If token is valid Then returns user name associated with token
        Else False.
        '''
        try:
            result = self.resolver.get_token(token)
        except Exception as ex:
            raise EauthAuthenticationError(
                "Token validation failed with {0}.".format(repr(ex)))

        return result
def verify_token ( self , token ) : try : result = self . resolver . get_token ( token ) except Exception as ex : raise EauthAuthenticationError ( "Token validation failed with {0}." . format ( repr ( ex ) ) ) return result
If token is valid Then returns user name associated with token
        Else False.