You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have subclassed OpenApiAuthenticationExtension to document an authentication class which subclasses rest_framework.authentication.TokenAuthentication.
Because there is an existing authentication extension for TokenAuthentication in this codebase -
Alternatively/additionally, the default priority could be 0 while this library's authentication extensions have a negative priority, so that as a user writing an authentication extension, my extension would be preferred by default.
Thank you again!
The text was updated successfully, but these errors were encountered:
I have subclassed
OpenApiAuthenticationExtension
to document an authentication class which subclassesrest_framework.authentication.TokenAuthentication
.Because there is an existing authentication extension for
TokenAuthentication
in this codebase -drf-spectacular/drf_spectacular/authentication.py
Line 27 in fcee218
drf-spectacular/drf_spectacular/plumbing.py
Line 506 in fcee218
It is not documented - https://drf-spectacular.readthedocs.io/en/latest/customization.html#specify-authentication-with-openapiauthenticationextension - that user authentication extensions which conflict with this library's authentication extensions require setting a higher priority.
Alternatively/additionally, the default priority could be 0 while this library's authentication extensions have a negative priority, so that as a user writing an authentication extension, my extension would be preferred by default.
Thank you again!
The text was updated successfully, but these errors were encountered: