I'm bouncing this bug between the various oauth modules because no one thinks this issue is from their module.
I'm seeing this error every few minutes:
Stacktrace (most recent call last):
File "django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "newrelic/hooks/framework_django.py", line 499, in wrapper
return wrapped(*args, **kwargs)
File "django/views/generic/base.py", line 71, in view
return self.dispatch(request, *args, **kwargs)
File "django/utils/decorators.py", line 34, in _wrapper
return bound_func(*args, **kwargs)
File "django/views/decorators/csrf.py", line 58, in wrapped_view
return view_func(*args, **kwargs)
File "django/utils/decorators.py", line 30, in bound_func
return func.__get__(self, type(self))(*args2, **kwargs2)
File "braces/views.py", line 91, in dispatch
return super(CsrfExemptMixin, self).dispatch(*args, **kwargs)
File "newrelic/hooks/framework_django.py", line 837, in wrapper
return wrapped(*args, **kwargs)
File "django/views/generic/base.py", line 89, in dispatch
return handler(request, *args, **kwargs)
File "django/utils/decorators.py", line 34, in _wrapper
return bound_func(*args, **kwargs)
File "django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
return view(request, *args, **kwargs)
File "django/utils/decorators.py", line 30, in bound_func
return func.__get__(self, type(self))(*args2, **kwargs2)
File "oauth2_provider/views/base.py", line 170, in post
url, headers, body, status = self.create_token_response(request)
File "oauth2_provider/views/mixins.py", line 124, in create_token_response
return core.create_token_response(request)
File "oauth2_provider/oauth2_backends.py", line 106, in create_token_response
headers)
File "oauthlib/oauth2/rfc6749/endpoints/base.py", line 64, in wrapper
return f(endpoint, uri, *args, **kwargs)
File "oauthlib/oauth2/rfc6749/endpoints/token.py", line 100, in create_token_response
request, self.default_token_type)
File "oauthlib/oauth2/rfc6749/grant_types/refresh_token.py", line 63, in create_token_response
refresh_token=self.issue_new_refresh_tokens)
File "oauthlib/oauth2/rfc6749/tokens.py", line 270, in create_token
self.request_validator.save_bearer_token(token, request)
File "oauth2_provider/oauth2_validators.py", line 291, in save_bearer_token
assert() # TODO though being here would be very strange, at least log the error
I'm bouncing this bug between the various oauth modules because no one thinks this issue is from their module.
I'm seeing this error every few minutes:
This is what I have installed:
django-oauth-toolkit==0.8.1 djangorestframework-oauth==1.0.1 oauth2client==1.4.11 oauthlib==0.7.2 requests-oauthlib==0.5.0