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

Dockerizing mockoidc for Integration Testing #55

Open
BenjamenMeyer opened this issue Jun 10, 2024 · 0 comments
Open

Dockerizing mockoidc for Integration Testing #55

BenjamenMeyer opened this issue Jun 10, 2024 · 0 comments

Comments

@BenjamenMeyer
Copy link

BenjamenMeyer commented Jun 10, 2024

I have been working on some functionality for mockoidc that would enable it to run under Docker for testing with multiple services. The core functionality breaks down into the following:

  • an authorization service service implementation that demonstrates a basic (very basic) system (root requiring valid JWT to access, login endpoint with basic auth via HTTP Request FormPost, and OIDC integration hooks to interact with mockoidc)
  • a manager interface for managing the authorization service instance and mockoidc instance (start, stop, load config)
  • a manager command-line tool for running the manager inside of docker with a JSON configuration files to load from (may be future take some settings from a HTTP request body for the commands)
  • the parts also expose a basic unauthenticated ping endpoint for system health
  • a client command-line tool for showing how to interact with it (take issuer URL and show the Well-Known OIDC Config; start/stop services, load config, access ping)

NOTE: I did need to expose the discoveryResponse type to DRY it and make sure the client saw the same thing.

This would effectively demonstrate #52 and likely #53 in the process, and make this project useful to those wanting to proof their JWT auth methodology in a Dockerized environment.

Any feedback would be appreciated. Looking to contribute this work at some point here in the future.

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

No branches or pull requests

1 participant