mirror of
https://github.com/unraid/api.git
synced 2026-01-04 23:50:37 -06:00
1.1 KiB
1.1 KiB
Development Configuration Files
This directory contains configuration files for local development.
OIDC Configuration
oidc.json
The default OIDC configuration file. This file is committed to git and should only contain non-sensitive test configurations.
Using a Local Configuration (gitignored)
For local testing with real OAuth providers:
- Create an
oidc.local.jsonfile based onoidc.json - Set the environment variable:
PATHS_OIDC_JSON=./dev/configs/oidc.local.json - The API will load your local configuration instead of the default
Example:
PATHS_OIDC_JSON=./dev/configs/oidc.local.json pnpm dev
Setting up OAuth Apps
- Go to Google Cloud Console
- Create a new project or select existing
- Enable Google+ API
- Create OAuth 2.0 credentials
- Add authorized redirect URI:
http://localhost:3000/graphql/api/auth/oidc/callback
GitHub
- Go to GitHub Settings > Developer settings > OAuth Apps
- Create a new OAuth App
- Set Authorization callback URL:
http://localhost:3000/graphql/api/auth/oidc/callback