diff --git a/oauth2_provider/backends.py b/oauth2_provider/backends.py index b2e706b54..25c0fed9c 100644 --- a/oauth2_provider/backends.py +++ b/oauth2_provider/backends.py @@ -15,8 +15,7 @@ class OAuth2Backend(object): def authenticate(self, **credentials): request = credentials.get('request') if request is not None: - oauthlib_core = get_oauthlib_core() - valid, r = oauthlib_core.verify_request(request, scopes=[]) + valid, r = OAuthLibCore.verify_request(request, scopes=[]) if valid: return r.user return None