jazzband / django-oauth-toolkit

OAuth2 goodies for the Djangonauts!
https://django-oauth-toolkit.readthedocs.io
Other
3.06k stars 777 forks source link

Add an authorize endpoint that uses JSON instead of a Django template… #1306

Open jhnbyrn opened 10 months ago

jhnbyrn commented 10 months ago

…/HTML form

Fixes #1305

Description of the Change

For single page applications it would be handy to be able to get the data for the authorization page as JSON and then render the authorization page on the client side, and similarly post the results as JSON rather than as a HTML form.

Checklist

codecov[bot] commented 10 months ago

Codecov Report

Merging #1306 (78bd3e8) into master (a4ae1d4) will increase coverage by 0.00%. The diff coverage is 95.83%.

@@           Coverage Diff           @@
##           master    #1306   +/-   ##
=======================================
  Coverage   97.37%   97.38%           
=======================================
  Files          32       32           
  Lines        2022     2028    +6     
=======================================
+ Hits         1969     1975    +6     
  Misses         53       53           
Files Changed Coverage Δ
oauth2_provider/views/base.py 97.97% <95.83%> (+0.08%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more