Skip to content

Test App and E2E tests #1266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dopry opened this issue May 1, 2023 · 0 comments
Open

Test App and E2E tests #1266

dopry opened this issue May 1, 2023 · 0 comments

Comments

@dopry
Copy link
Contributor

dopry commented May 1, 2023

Is your feature request related to a problem? Please describe.
When reviewing PRs. there is no easy way to facilitate end-to-end testing for maintainers. It would be nice if there were a Test IDP app along with Test Clients for easily validating the functionality of OAuthToolkit from an end user perspective. In addition it would provide a reference implementation for consumers of the toolkit to guide their own implementations.

Describe the solution you'd like

  1. There should be example implementations in the test folder that can be used by maintainers and e2e tests.

    • /tests/apps/idp - an implementation of an IDP using django-oauth-toolkit.
    • /tests/apps/rp - an implementation of a relying party that demonstrates the available authorization flows. (authorization code, implicit, resource owner, client credentials, OpenID connect hybrid)
  2. There should be a collection of playwright e2e tests that exercise each authorization flow covering login and logout scenarios.

    • /tests/e2e/test_authorization_code.py
    • /tests/e2e/test_implicit.py
    • /tests/e2e/test_resource_owner.py -
    • /tests/e2e/test_client_credentials.py
    • /tests/e2e/test_hybrid.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant