https://github.com/hellocoop/mockin
A Hellō Mock Server
https://github.com/hellocoop/mockin
mock-e2e-ci
Last synced: 4 months ago
JSON representation
A Hellō Mock Server
- Host: GitHub
- URL: https://github.com/hellocoop/mockin
- Owner: hellocoop
- License: mit
- Created: 2021-10-18T19:28:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2026-02-22T21:00:15.000Z (4 months ago)
- Last Synced: 2026-02-23T00:23:13.937Z (4 months ago)
- Topics: mock-e2e-ci
- Language: JavaScript
- Homepage:
- Size: 134 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mockin - A Mock Login Server for Hellō
Mockin is a mock of the Hellō of the OpenID Connect Login Service and implements the authorization, token, introspection, and userinfo endpoints.
- **Development** - speeds up development as you won't be redirecting through the Hellō production server. Start the login flow by clicking on the `[ ō Continue with Hellō ]` button. Your browser will redirect to Mockin and then back to your app which will then complete the login flow.
- **Testing** - simplifies creating end to end tests, and with the `/mock` APIs, you can simulate expired and invalid responses allowing you to ensure your app properly handles all exceptions, improving your security posture.
## Usage
Mockin is available as both an npm module and a docker image:
`npx @hellocoop/mockin@latest`
`docker run -d -p 3333:3333 hellocoop/mockin:latest`
## Issuer
Mockin defaults to `http://127.0.0.1:3333` as the Issuer. Override by setting the `ISSUER` environment variable.
## Mock API
The mock API can change the returned claims, simulate errors, and invalid ID Tokens.
For detailed information on installation, usage, and examples, visit the [documentation](https://www.hello.dev/docs/mockin).