Skip to content

Allow customization of ObtainAuthToken response #4385

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

abarto
Copy link

@abarto abarto commented Aug 11, 2016

Added a get_response method to the ObtainAuthToken view to allow customization of the response without having to rewrite the whole view. This will allow users to change the response without worrying about validation or token creation, which may or may not change in the future.

@tomchristie
Copy link
Member

Thanks for the input. I'd rather leave this with the current coarse-grained API.
It's only a 5-line override at the moment, and I'd prefer to do without the extra indirection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants