Skip to content

Conversation

@pantierra
Copy link

I would like to use this service for testing in a kubernetes environment, where it is deployed behind an ingress controller with path-based routing. This PR adds support for accessing JWKS endpoint through ingress path prefixes.

Changes:

  • Add /{prefix:path}/.well-known/jwks.json route to handle prefixed requests
  • Fix login form action to use issuer base path for proper routing

This allows JWKS to be accessible at both:

  • /.well-known/jwks.json (original)
  • /mock-oidc/.well-known/jwks.json (with prefix)
  • Any arbitrary prefix path

@pantierra
Copy link
Author

pantierra commented Dec 19, 2025

This PR allows developmentseed/eoapi-k8s#376 to be tested locally (and CI) with the mock-oidc-server.

@pantierra pantierra force-pushed the feature/work-with-path-prefix branch from 667ec0b to 9129fdd Compare December 19, 2025 15:12
@alukach
Copy link
Owner

alukach commented Dec 19, 2025

Supporting (and ignoring) any prefix is a clever solution. However, don't we also need to do this on the other endpoints? (e.g. /authorize)

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

Successfully merging this pull request may close these issues.

2 participants