def validate_access_params(self, get_data, post_data, header):
        token_type = self.config[self.CONFIG_TOKEN_TYPE]
        realm = self.config[self.CONFIG_WWW_REALM]
        methods = 0
        token = ''
        
        if header:
            bearer, token = header.split(' ')
        
            if not bearer or not token:
                raise HTTP(401, 'Malformed auth header')
                                                  
            elif bearer != self.TOKEN_BEARER_HEADER_NAME:
                raise HTTP(415, 'Only "Bearer" token type is allowed')
        
            methods += 1

        try:
            if get_data[self.TOKEN_PARAM_NAME]:
                token = get_data[self.TOKEN_PARAM_NAME]
                methods += 1
        except:
            pass  # Do we want a `pass` here?
        
        try:
            if post_data[self.TOKEN_PARAM_NAME]:
                token = post_data[self.TOKEN_PARAM_NAME]
                methods += 1
        except:
            pass  # Do we want a `pass` here?
            
        if 1 > methods:
            raise HTTP(405, 'Only one method may be used to authenticate at a time (Auth header, GET or POST).')

        elif not methods:
            raise HTTP(424, 'LookupError: Supplied access token is invalid.')

        token = self.storage.get_access_token(token)

        if not token:
            raise HTTP(424, 'LookupError: Supplied access token is invalid.')
            
        elif self.storage.expired_access_token(token):
            raise HTTP(410, 'ValueError: The access token provided has expired')
                                              
        return token['access_token']
dataset/ETHPy150Open joaoqalves/web2py-oauth2/modules/oauth/__init__.py/OAuth2.validate_access_params/swapped operands of `>`