SSO service written in SvelteKit (OAuth2 / OIDC)
https://secure.icynet.eu
.vscode | ||
migrations | ||
private | ||
src | ||
static | ||
uploads | ||
.dockerignore | ||
.env.example | ||
.eslintignore | ||
.eslintrc.cjs | ||
.gitignore | ||
.npmrc | ||
.prettierignore | ||
.prettierrc | ||
Dockerfile | ||
drizzle.config.ts | ||
package-lock.json | ||
package.json | ||
README.md | ||
svelte.config.js | ||
tsconfig.json | ||
vite.config.ts |
sso-core
This is a SvelteKit-powered authentication service.
Requirements
- A MySQL or MariaDB database.
- Node.js 20+ or Docker.
Set up
- Clone the repository.
- Install dependenices -
npm install
. - Configure the environment -
cp .env.example .env
. - Generate secrets:
- Session secret -
node -e 'console.log(require("crypto").randomBytes(16).toString("hex"))'
. - Challenge secret -
node -e 'console.log(require("crypto").randomBytes(32).toString("hex"))'
.
- Session secret -
- Build the application -
npm run build
. - Run the application -
node -r dotenv/config build
.