Skip to content

chore: add external auth providers to oidctest #10958

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

Merged
merged 7 commits into from
Nov 30, 2023

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Nov 30, 2023

What this does

Enables external auth tests to use oidctest pkg with a fake oauth provider. This makes external auth flows actually test against a functioning fake idp. I had to add some custom settings to the IDP to support the custom route additions.

I did not touch the device flow because I do not 100% understand it.

Why?

Firstly using an actual IDP is just overall good for our tests. I am working on a different external auth thing, and want to use this.

@Emyrk Emyrk requested a review from kylecarbs November 30, 2023 17:16
@Emyrk Emyrk marked this pull request as ready for review November 30, 2023 18:23
Copy link
Member Author

Emyrk commented Nov 30, 2023

@Emyrk Emyrk changed the title chore: add external auth rproviders to oidctest chore: add external auth providers to oidctest Nov 30, 2023
Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

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

LGTM, but I think at this point we need to add a *testing.T into FakeIDP and start t.Log()-ing everywhere like crazy so we can debug these tests more easily. EDIT: I see it now, never mind!

@Emyrk Emyrk merged commit 0a16bda into main Nov 30, 2023
@Emyrk Emyrk deleted the stevenmasley/oidctest_external_auth branch November 30, 2023 20:05
@github-actions github-actions bot locked and limited conversation to collaborators Nov 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants