https://github.com/danicc097/oidc-server
Reusable OIDC mock server with generics and inmemory user store with hot reload.
https://github.com/danicc097/oidc-server
oidc-server openid-connect
Last synced: 11 months ago
JSON representation
Reusable OIDC mock server with generics and inmemory user store with hot reload.
- Host: GitHub
- URL: https://github.com/danicc097/oidc-server
- Owner: danicc097
- License: apache-2.0
- Created: 2023-06-10T13:36:16.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-12T18:40:50.000Z (over 2 years ago)
- Last Synced: 2025-06-11T02:43:31.520Z (about 1 year ago)
- Topics: oidc-server, openid-connect
- Language: Go
- Homepage:
- Size: 99.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# oidc-server
OpenID Connect development server based on
https://github.com/zitadel/oidc/tree/main/example/server.
# Setup
## Runtime environment variables
- `ISSUER`: fully qualified domain name.
- `DATA_DIR`: absolute path to stored mock data. e.g. `/data`.
- `PORT` (optional): server port. Default: `10001`. Expose accordingly if using
containers.
## Required files
- `${DATA_DIR}/users/*.json`: JSON files with key-value pairs of users for easier
testing. Keys are ignored. Server will raise errors at login page if duplicated IDs are
found for easier debugging. The `${DATA_DIR}/users` folder is continuously watched for changes. See
`storage/user.go`'s `User` for available fields.
- `${DATA_DIR}/redirect_uris.txt`: valid redirect URIs to load at startup.
## Examples
See `example` directory. Run with `./example/run`, point to it in your client
app and edit redirect_uris.txt accordingly.