{"id":25524731,"url":"https://github.com/ardetrick/testcontainers-ory-hydra","last_synced_at":"2026-03-01T18:04:57.855Z","repository":{"id":199153949,"uuid":"689195435","full_name":"ardetrick/testcontainers-ory-hydra","owner":"ardetrick","description":"The OryHydraDockerComposeContainer is a Testcontainer extension designed for the Ory Hydra OAuth 2.0 and OpenID Connect provider. It allows you to quickly integrate and test Ory Hydra functionalities in Java applications using Docker Compose.","archived":false,"fork":false,"pushed_at":"2025-01-31T01:19:48.000Z","size":317,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T02:25:04.817Z","etag":null,"topics":["java","oauth2","ory","ory-hydra","testcontainers","testcontainers-java","testing"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ardetrick.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-09T04:03:09.000Z","updated_at":"2025-01-31T01:19:51.000Z","dependencies_parsed_at":"2023-10-11T04:19:10.800Z","dependency_job_id":"11cb853d-7131-464f-a8ab-cccc0460eb38","html_url":"https://github.com/ardetrick/testcontainers-ory-hydra","commit_stats":null,"previous_names":["ardetrick/testcontainers-ory-hydra"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardetrick%2Ftestcontainers-ory-hydra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardetrick%2Ftestcontainers-ory-hydra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardetrick%2Ftestcontainers-ory-hydra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardetrick%2Ftestcontainers-ory-hydra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ardetrick","download_url":"https://codeload.github.com/ardetrick/testcontainers-ory-hydra/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239727073,"owners_count":19687098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","oauth2","ory","ory-hydra","testcontainers","testcontainers-java","testing"],"created_at":"2025-02-19T20:05:34.313Z","updated_at":"2026-01-01T03:30:16.397Z","avatar_url":"https://github.com/ardetrick.png","language":"Java","funding_links":[],"categories":["Projects"],"sub_categories":["Ory Hydra"],"readme":"= Ory Hydra Testcontainer\n\nThe `OryHydraDockerComposeContainer` is a Testcontainer extension designed for the Ory Hydra OAuth 2.0 and OpenID Connect provider. It allows you to quickly integrate and test Ory Hydra functionalities in Java applications using Docker Compose.\n\n== Prerequisites\n\n* Docker installed and running.\n* Java JDK 8 or later.\n\n== Features\n\n* Automatic setup of Ory Hydra's admin and public ports.\n* Convenient methods to fetch base URIs for both the admin and public endpoints.\n* Easy retrieval of OAuth2 Authorization and JWKS URIs.\n* Customizable through a builder pattern, allowing for the configuration of Docker Compose files and environment variables.\n\n== Usage\n\n=== Dependency\n\nFirst, include the `OryHydraDockerComposeContainer` in your project's `build.gradle`:\n\n[source,groovy]\n----\ndependencies {\n    testImplementation 'com.ardetrick.testcontainers:ory-hydra-testcontainer:0.0.1'\n}\n----\n\n=== Test Usage\n\n[source,java]\n----\nimport com.ardetrick.testcontainers.OryHydraDockerComposeContainer;\n\npublic class HydraIntegrationTest {\n\n    OryHydraDockerComposeContainer\u003c?\u003e dockerComposeEnvironment;\n\n    @BeforeEach\n    public void beforeEachTest() {\n        dockerComposeEnvironment = OryHydraDockerComposeContainer.builder()\n                .dockerComposeFile(new File(\"path_to_docker_compose.yml\"))\n                .urlsLogin(\"http://example.com/login\")\n                .urlsConsent(\"http://example.com/consent\")\n                .urlsSelfIssuer(\"http://example.com/\")\n                .start();\n    }\n\n    @Test\n    public void testOAuthFlow() {\n        // Use the helper methods like hydra.getOAuth2AuthUri() for your tests.\n        // Your test logic here...\n    }\n\n}\n----\n\n== Configuration Options\n\nUsing the `Builder` class, you can configure:\n\n* `dockerComposeFile(File)`: Specify the Docker Compose file to use.\n* `urlsLogin(String)`: Set the login URL.\n* `urlsConsent(String)`: Set the consent URL.\n* `urlsSelfIssuer(String)`: Set the self-issuer URL.\n\n== Building\n\nTo build from the source using the Gradle Wrapper:\n\n----\n$ git clone https://github.com/ardetrick/ory-hydra-testcontainer.git\n$ cd ory-hydra-testcontainer\n$ ./gradlew clean build\n----\n\nFor Windows:\n\n----\n$ git clone https://github.com/ardetrick/ory-hydra-testcontainer.git\n$ cd ory-hydra-testcontainer\n$ gradlew.bat clean build\n----\n\n== Contributing\n\nWe welcome contributions! Please submit pull requests or open issues for feedback.\n\nThis project is licensed under the MIT License. See the `LICENSE` file for details.\n\n== Contact\n\nFor questions or feedback, open an issue on the GitHub repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fardetrick%2Ftestcontainers-ory-hydra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fardetrick%2Ftestcontainers-ory-hydra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fardetrick%2Ftestcontainers-ory-hydra/lists"}