Skip to content
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

Add a way to end-to-end test OAuth2 flows #841

Closed
porcellus opened this issue Jul 30, 2024 · 0 comments
Closed

Add a way to end-to-end test OAuth2 flows #841

porcellus opened this issue Jul 30, 2024 · 0 comments

Comments

@porcellus
Copy link
Collaborator

  • Integrate OAuth2Provider in the test app frontend and backend
    • Expose a test api to handle creating clients in e2e tests
  • Integrate OAuth2Client into our test app backend
  • Add a separate route in the test app frontend that has a single Login via SuperTokens (akin to what we have for TP login)
    • This should get the authorization url from OAuth2Client and redirect to it on button press
    • This should take the clientId from a queryparam
  • Add a separate route in the test app frontend that handles the callbacks we get after starting a login process via the above route
    • This should call the signin API of the OAuth2Client
    • It should display session information after that happens or an error if it fails
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

No branches or pull requests

2 participants