Skip to content

feat: replace external OAuth providers with navikt/mock-oauth2-server for local dev#10006

Open
BacLuc wants to merge 1 commit into
ecamp:develfrom
BacLuc:feat/mock-oauth-local
Open

feat: replace external OAuth providers with navikt/mock-oauth2-server for local dev#10006
BacLuc wants to merge 1 commit into
ecamp:develfrom
BacLuc:feat/mock-oauth-local

Conversation

@BacLuc

@BacLuc BacLuc commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

In APP_ENV=dev (local Docker development), all four OAuth providers (Google, PBS MiData, CeviDB, JublaDB) are now backed by navikt/mock-oauth2-server instead of reaching out to real external services.

This lets developers and e2e tests exercise the full OAuth login flow— including the browser redirect, user-selection screen and callback— without real credentials or network access to external identity providers.

What is NOT changed

  • Helm charts (.helm/) are untouched: deployed environments (feature branches, staging, production) still use the real external OAuth providers.
  • Existing knpu_oauth2_client.yaml (prod config) is untouched.
  • GoogleAuthenticator and HitobitoAuthenticator are untouched and still used except for url and claim list overrides.

@BacLuc

BacLuc commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

Ran all e2e tests here:
https://github.com/BacLuc/ecamp3/actions/runs/27309187679

… for local dev

In APP_ENV=dev (local Docker development), all four OAuth providers (Google,
PBS MiData, CeviDB, JublaDB) are now backed by navikt/mock-oauth2-server
instead of reaching out to real external services.

This lets developers and e2e tests exercise the full OAuth login flow—
including the browser redirect, user-selection screen and callback—
without real credentials or network access to external identity providers.

## What is NOT changed

- Helm charts (.helm/) are untouched: deployed environments (feature branches,
  staging, production) still use the real external OAuth providers.
- Existing knpu_oauth2_client.yaml (prod config) is untouched.
- GoogleAuthenticator and HitobitoAuthenticator are untouched and still used except for url and claim list overrides.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: BacLuc <lucius.bachmann@clubpage.ch>
@BacLuc BacLuc force-pushed the feat/mock-oauth-local branch from 907a841 to 99ba6d8 Compare June 14, 2026 15:27
@BacLuc BacLuc marked this pull request as ready for review June 14, 2026 15:28
@BacLuc BacLuc requested a review from a team June 14, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant