https://github.com/cerberauth/testid-ory
TestID - OpenID Connect Provider for testing and development environments using Ory Hydra.
https://github.com/cerberauth/testid-ory
automated-testing golang oauth2 openid-connect openidconnect ory ory-hydra test-automation testid testing
Last synced: about 1 month ago
JSON representation
TestID - OpenID Connect Provider for testing and development environments using Ory Hydra.
- Host: GitHub
- URL: https://github.com/cerberauth/testid-ory
- Owner: cerberauth
- License: mit
- Created: 2024-06-06T21:51:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-14T15:03:56.000Z (about 2 months ago)
- Last Synced: 2025-08-14T17:16:48.378Z (about 2 months ago)
- Topics: automated-testing, golang, oauth2, openid-connect, openidconnect, ory, ory-hydra, test-automation, testid, testing
- Language: Go
- Homepage: https://testid.cerberauth.com/
- Size: 115 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# TestID
TestID - OpenID Connect Provider for testing and development environments.
This project is a simple OpenID Connect Provider that can be used for testing and development environments. It provides a simple way to test OAuth 2.0 and OpenID Connect flows. It is not intended for production use!
Check out [TestID](https://testid.cerberauth.com/).
## Development
```bash
docker compose -p cerberauth-testid -f docker-compose.yml -f docker-compose.dev.yml up -d
```### OAuth 2.0 Clients
### Authorization Code Flow
Create a client for the authorization code flow:
```shell
hydra create client \
--endpoint http://localhost:4445 \
--grant-type authorization_code,refresh_token \
--response-type code,id_token \
--scope openid,offline,offline_access,profile,email \
--token-endpoint-auth-method client_secret_post \
--redirect-uri http://127.0.0.1:4446/callbackcode_client_id="{set to client id from output}"
code_client_secret="{set to client secret from output}"
hydra perform authorization-code \
--endpoint http://localhost:4444 \
--client-id $code_client_id \
--client-secret $code_client_secretcode_access_token="{set to access token from output}"
hydra introspect token $code_access_token
```## Thanks
This project used the following open-source projects:
* [Hydra](https://github.com/ory/hydra) - OpenID Connect and OAuth 2.0 Server
* [Oathkeeper](https://github.com/ory/oathkeeper) - Identity & Access Proxy## License
This repository is licensed under the [MIT License](https://github.com/cerberauth/testid/blob/main/LICENSE) @ [CerberAuth](https://www.cerberauth.com/). You are free to use, modify, and distribute the contents of this repository.