Skip to content

Conversation

@dopry
Copy link
Member

@dopry dopry commented Oct 5, 2023

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

  • PR only contains one change (considered splitting up PR)
  • [N/A] unit-test added
  • documentation updated
  • CHANGELOG.md updated (only for user relevant changes)
  • author name in AUTHORS

@dopry dopry requested a review from n2ygk October 5, 2023 14:52
@codecov
Copy link

codecov bot commented Oct 5, 2023

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%) ⬆️
oauth2_provider/oauth2_backends.py 94.64% <100.00%> (+0.09%) ⬆️
oauth2_provider/oauth2_validators.py 94.10% <100.00%> (+0.02%) ⬆️
oauth2_provider/views/application.py 100.00% <ø> (ø)

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

@dopry dopry force-pushed the feature/test-apps branch 4 times, most recently from 787a0e1 to cee2181 Compare October 10, 2023 15:37
@dopry dopry requested a review from tonial October 10, 2023 16:48
@tonial
Copy link
Contributor

tonial commented Oct 10, 2023

I'll look into this PR on Friday.

Copy link
Contributor

@tonial tonial left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this test app is a great addition to this project.

I've never used svelte before so I don't really feel qualified to judge this part of this PR, but it works and it's easy to use, so I think it should be enough for anyone.

I also think the svelte part would benefit from enhancements in the future to be able to test multiple scenarios (with or without PKCE, using basic auth or passing client_id + client_secret, ...), but it should not slow down this PR.

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.
@dopry dopry force-pushed the feature/test-apps branch from cee2181 to 50dff93 Compare October 16, 2023 15:48
@dopry dopry merged commit f9fcaff into django-oauth:master Oct 17, 2023
@dopry dopry deleted the feature/test-apps branch October 19, 2023 20:44
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.

4 participants