django-oidc-provider
django-oidc-provider copied to clipboard
Allow setting a custom TokenEndpoint class
If for whatever reason you want to change the TokenEndpoint class used on TokenView, you now need to completely overwrite the post method. This PR allows you to overwrite it without taking over the TokenView completely, using a variable called token_endpoint_class.
This change is in line with how AuthorizeView works with AuthorizeEndpoint through authorize_endpoint_class.
The failing tests have nothing to do with my PR? Running tox on master also breaks it.