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
In rest_auth.registration.views the allowed methods are allowed_methods = ('POST', 'OPTIONS', 'HEAD'). Please notice that performing a request with OPTIONS method will return something like this
{
"name": "Register",
"description": "Accepts the credentials and creates a new user\nif user does not exist already\nReturn the REST Token if the credentials are valid and authenticated.\nCalls allauth complete_signup method\n\nAccept the following POST parameters: username, email, password\nReturn the REST Framework Token Object's key.",
"renders": [
"application/json",
"text/html"
],
"parses": [
"application/json",
"application/x-www-form-urlencoded",
"multipart/form-data"
]
}
As you can see this returns a description of the endpoint (as OPTIONS is menat to be) but expose the docstring describing RegisterView in fact maybe telling the user much more than what it should know..
In
rest_auth.registration.views
the allowed methods areallowed_methods = ('POST', 'OPTIONS', 'HEAD')
. Please notice that performing a request withOPTIONS
method will return something like thisAs you can see this returns a description of the endpoint (as OPTIONS is menat to be) but expose the docstring describing
RegisterView
in fact maybe telling the user much more than what it should know..Reference: http://www.django-rest-framework.org/api-guide/metadata/
The text was updated successfully, but these errors were encountered: