flask_oauthlib/provider/oauth1.py
def verify_realms(self, token, realms, request):
        """Verify if the realms match the requested realms."""
        log.debug('Verify realms %r', realms)
        tok = request.request_token or self._grantgetter(token=token)
        if not tok:
            return False

        request.request_token = tok
        if not hasattr(tok, 'realms'):
            # realms not enabled
            return True
        return set(tok.realms) == set(realms)
def verify_realms(self, token, realms, request):
        log.debug('Verify realms %r', realms)
        tok = request.request_token or self._grantgetter(token=token)
        if not tok:
            return False

        request.request_token = tok
        if not hasattr(tok, 'realms'):
            # realms not enabled
            return True
        return set(tok.realms) == set(realms)
def verify_realms ( self , token , realms , request ) : log . debug ( 'Verify realms %r' , realms ) tok = request . request_token or self . _grantgetter ( token = token ) if not tok : return False request . request_token = tok if not hasattr ( tok , 'realms' ) : # realms not enabled return True return set ( tok . realms ) == set ( realms )
Verify if the realms match the requested realms.
Verify if the realms match the requested realms .