def check_auth(self, token, allowed_roles, resource, method):
        return token and self.redis.get(token)
Check if API request is authorized.
dataset/ETHPy150Open nicolaiarocci/eve-oauth2/oauth2.py/BearerAuth.check_auth