Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bradenrayhorn/fake-oidc
OIDC server for local development and testing
https://github.com/bradenrayhorn/fake-oidc
development oidc oidc-provider oidc-server testing
Last synced: 11 days ago
JSON representation
OIDC server for local development and testing
- Host: GitHub
- URL: https://github.com/bradenrayhorn/fake-oidc
- Owner: bradenrayhorn
- License: mit
- Created: 2024-05-17T12:55:17.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-09-18T01:44:03.000Z (5 months ago)
- Last Synced: 2024-12-05T08:16:10.651Z (2 months ago)
- Topics: development, oidc, oidc-provider, oidc-server, testing
- Language: Go
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fake-oidc
A simple, insecure OpenID Connect provider intended for use in local development and automated tests.
## Features
Everything is stored in-memory, therefore data will not be persisted between restarts.The provider supports `authorization_code` grant and `refresh_token` grant.
The provider attaches limited claims to the ID token: `name`, `sub`, `email`.
The provider has one built-in client:
- client id: `dev-client`
- client secret: `secure-secret`All redirect urls are accepted.
## Configuration
By default fake-oidc starts on port 7835.
This can be overriden by setting the environment variable `FAKE_OIDC_HTTP_PORT`.Example: `FAKE_OIDC_HTTP_PORT=1234 fake-oidc`.
## Login
On the login page, any username can be entered and will be accepted.
For automated tests, the query parameter `username=MY_USERNAME_HERE` can be added to the login
route to bypass the login form and callback to the resource server immediately.## Disclaimer
There are probably many issues with this implementation, but it seems to work okay for basic testing.
Please report any issues.