SSO service written in SvelteKit (OAuth2 / OIDC) https://secure.icynet.eu
Go to file
2024-06-04 21:28:38 +03:00
.vscode settings and avatar 2024-05-17 17:31:14 +03:00
migrations client invites 2024-06-02 20:08:56 +03:00
private beginning authorize 2024-05-17 23:22:44 +03:00
src Docker 2024-06-04 21:28:38 +03:00
static favicon 2024-06-04 20:36:10 +03:00
uploads settings and avatar 2024-05-17 17:31:14 +03:00
.dockerignore Docker 2024-06-04 21:28:38 +03:00
.env.example favicon 2024-06-04 20:36:10 +03:00
.eslintignore Scaffold 2024-05-16 17:49:11 +03:00
.eslintrc.cjs Scaffold 2024-05-16 17:49:11 +03:00
.gitignore all in a days work 2024-05-16 23:17:06 +03:00
.npmrc Scaffold 2024-05-16 17:49:11 +03:00
.prettierignore Scaffold 2024-05-16 17:49:11 +03:00
.prettierrc Scaffold 2024-05-16 17:49:11 +03:00
Dockerfile Docker 2024-06-04 21:28:38 +03:00
drizzle.config.ts admin stuff 2024-06-01 14:42:08 +03:00
package-lock.json password reset 2024-05-20 20:25:46 +03:00
package.json password reset 2024-05-20 20:25:46 +03:00
README.md password reset 2024-05-20 20:25:46 +03:00
svelte.config.js Scaffold 2024-05-16 17:49:11 +03:00
tsconfig.json Scaffold 2024-05-16 17:49:11 +03:00
vite.config.ts Scaffold 2024-05-16 17:49:11 +03:00

sso-core

This is a SvelteKit-powered authentication service.

Set up

  1. Install dependenices - npm install.
  2. Configure the environment - cp .env.example .env.
  3. Generate secrets and stuff:
    1. Session secret - node -e 'console.log(require("crypto").randomBytes(16).toString("hex"))'.
    2. Challenge secret - node -e 'console.log(require("crypto").randomBytes(32).toString("hex"))'.
    3. Generate JWT keys in the private directory - openssl genpkey -out jwt.private.pem -algorithm RSA -pkeyopt rsa_keygen_bits:2048.
    4. Also make the public key - openssl rsa -in jwt.private.pem -pubout -outform PEM -out jwt.public.pem.
  4. Build the application - npm run build.
  5. Run the application - node -r dotenv/config build.