django-oidc-provider icon indicating copy to clipboard operation
django-oidc-provider copied to clipboard

Allow setting a custom TokenEndpoint class

Open NickdeDycker opened this issue 5 years ago • 1 comments

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.

NickdeDycker avatar Feb 24 '20 16:02 NickdeDycker

The failing tests have nothing to do with my PR? Running tox on master also breaks it.

NickdeDycker avatar Feb 24 '20 17:02 NickdeDycker