django-rest-auth
django-rest-auth copied to clipboard
Prevent logout GET from getting documented by schema generation
If ACCOUNT_LOGOUT_ON_GET is False, a 405 response is appropriately returned.
However, when using DRF's automatic schema/docs generation, the GET method is still documented.
Conditionally implementing the get method on the LogoutView will prevent the get endpoint from appearing in the schema/docs.
Coverage decreased (-0.3%) to 96.774% when pulling 76fd218958828f252f7cc566746ec966269c852e on sloria:undoc-logout-get into 42d039b473bc18080d58656f50f379005cd70499 on Tivix:master.
Thanks for contributing! This looks good to me and we'll get to merging it soon.
Thanks for contributing! This looks good to me and we'll get to merging it soon.
soon is how many years?
Hi, as a user of rest-auth, thanks for the contribution! This repo is not maintained anymore, so the development moved to dj-rest-auth. (reference: https://github.com/Tivix/django-rest-auth/issues/568) It may be best, if you move this PR there. (and upgrade to using dj_rest_auth)
new repo link: https://github.com/jazzband/dj-rest-auth (I'm not the upkeeper of that repo, it just makes sense for me to help you merge your PR)
Many Thanks, Barney