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)
Process a LOGIN command with a username and password from the IMAP
dataset/ETHPy150Open lepture/flask-oauthlib/flask_oauthlib/provider/oauth1.py/OAuth1RequestValidator.verify_realms--crossover with--dataset/ETHPy150Open scanner/asimap/asimap/client.py/PreAuthenticated.do_login