diff --git a/doc/upgrade.rst b/doc/upgrade.rst index f13462c34..4e649796d 100644 --- a/doc/upgrade.rst +++ b/doc/upgrade.rst @@ -151,6 +151,19 @@ Required changes to :file:`settings.py` 'autoconfig.', 'autodiscover.', +- Remove ``rest_framework.authentication.SessionAuthentication`` from ``REST_FRAMEWORK`` variable: + + .. sourcecode:: python + + REST_FRAMEWORK = { + # Stuff before... + "DEFAULT_AUTHENTICATION_CLASSES": ( + "oauth2_provider.contrib.rest_framework.OAuth2Authentication", + "rest_framework.authentication.TokenAuthentication", + ), + # Stuff after... + } + Version 2.5.0 =============