Something went wrong. Try again.
Synapse is a study workspace. Organize courses read and annotate the material, train with generated exercises and watch your progress forked from denishovart.com/synapse
Something went wrong. Try again.
1234567891011121314151617181920212223242526# Development helpers, not part of the deployment. Bring one up alongside the# app you run with `pnpm dev`:# docker compose -f docker-compose.dev.yml up mock-oidc## mock-oidc is a throwaway OpenID Connect provider (navikt/mock-oauth2-server)# for exercising the SSO flow end to end without a real IdP or any accounts.# It serves discovery, an interactive login page and the token endpoint, and# issues ID tokens whose claims are typed in at login. Our client reads the# user from the ID token (not userinfo), so the login form's username becomes# the subject and the claims box supplies email/name. See docs/auth.md# ("Testing SSO locally") for the full walkthrough.services: mock-oidc: image: ghcr.io/navikt/mock-oauth2-server:2.1.10 ports: - '8090:8090' environment: SERVER_PORT: 8090 # interactiveLogin serves a form at the authorize endpoint: enter any # username (becomes the subject) and, optionally, a claims JSON for the # rest. The issuer it stamps into tokens is derived from the request host, # so http://localhost:8090/<issuerId> is reachable from both the browser # (authorize redirect) and the host-run API (discovery + token exchange). JSON_CONFIG: '{ "interactiveLogin": true }' restart: unless-stopped