SERVE_AUTHENTICATION seems not working #471
Labels
enhancement
New feature or request
fix confirmation pending
issue has been fixed and confirmation from issue reporter is pending
I have DRF settings with Auth classes as following:
REST_FRAMEWORK = { "DEFAULT_AUTHENTICATION_CLASSES": ( "rest_framework.authentication.TokenAuthentication", "rest_framework.authentication.BasicAuthentication", ), "DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema" }
However in schema I would like to expose only
TokenAuthentication
. For that I add settingsSPECTACULAR_SETTINGS = { "SERVE_AUTHENTICATION": ["rest_framework.authentication.TokenAuthentication"], }
But output schema still has
basicAuth
andtokenAuth
undersecuritySchemes
and in all endpoints undersecurity
.Any idea how to serve only
TokenAuthentication
?The text was updated successfully, but these errors were encountered: