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 integration tests with mock-oauth2-server #775

Open
minrk opened this issue Nov 11, 2024 · 0 comments
Open

Add integration tests with mock-oauth2-server #775

minrk opened this issue Nov 11, 2024 · 0 comments

Comments

@minrk
Copy link
Member

minrk commented Nov 11, 2024

Proposed change

Raising from #579

We have an example deploying with mock-oauth2-server, which is useful for manual testing with a 'real' oauth provider.

It runs easily in a container with JSON configuration from the environment, so we could use it to exercise some features hard to test without help from the provider side, such as PKCE and refresh tokens. I used it to test #579 by hand.

Alternative options

Keep mocking providers, which means we are only testing that we meet our own expectations, not reality.

Who would use this feature?

maintainers, implementers of new features that require interactions with a provider.

(Optional): Suggest a solution

Fixture to launch mock-oauth2-server in a container with a given configuration, use it to exercise a few features that involve the provider, such as basic full-flow login exercise, refresh_user, OIDC, and PKCE.

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