jazzband / django-oauth-toolkit

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

feat: idp/rp test apps #1332

Closed dopry closed 8 months ago

dopry commented 9 months ago

Implement a minimal testing IDP and RP for maintainers.

There is a single Application configured in the IDP for the RP sample application it used the OIDC Authorization + PKCE flow.

This is a meant to be a starting point for building out further test scenarios.

applies to #1266

Description of the Change

implements a test IDP using DOT and RP as a pre-cursor to developing playwright E2E tests.

Checklist

codecov[bot] commented 9 months ago

Codecov Report

Merging #1332 (50dff93) into master (1c4a997) will increase coverage by 0.02%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1332      +/-   ##
==========================================
+ Coverage   97.44%   97.46%   +0.02%     
==========================================
  Files          32       32              
  Lines        2073     2092      +19     
==========================================
+ Hits         2020     2039      +19     
  Misses         53       53              
Files Coverage Δ
oauth2_provider/models.py 98.63% <100.00%> (+0.05%) :arrow_up:
oauth2_provider/oauth2_backends.py 94.64% <100.00%> (+0.09%) :arrow_up:
oauth2_provider/oauth2_validators.py 94.10% <100.00%> (+0.02%) :arrow_up:
oauth2_provider/views/application.py 100.00% <ø> (ø)

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

tonial commented 8 months ago

I'll look into this PR on Friday.