Jeff-Tian / uni-sso

SSO, once and for all

Home Page:https://sso.jiwai.win

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uni-sso

SSO, once and for all

Assertible status

API Documentation

Deployments

This project's Travis CI will deploy it to 2 PaaS platforms. To make it deploy to Okteto successfully , you need to base64 encrypt the kubernetes config file and save it as an environment variable in Travis CI:

  • Windows
certutil.exe -encodehex ..\k8s-config\okteto\config .\okteto\config 1 && type .\okteto\config | clip.exe
  • macOS
cat ~/k8s-config/kubesail/config | base64 | pbcopy

But now my travis CI is stopped. So now only the heroku deployment is working.

Heroku

Okteto (Stopped)

https://uni-sso-jeff-tian.cloud.okteto.net/

Secrets

Secrets maintained in a separate private project: https://github.com/Jeff-Tian/uni-sso-secrets

It's mainly a secrets.yml that can be applied to kubernetes cluster. In heroku, they are just configurable environment variables.

Logging

Log streamed to elastic search

Local

Production

Kibana

Monitoring

Analysis

Clients

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Entities

Entities

TODO

  • Switch to fastify (Already deployed to okteto, without something not working due to passport not supported by fastify), challenges:
    • auth (don't use passport)

About

SSO, once and for all

https://sso.jiwai.win


Languages

Language:TypeScript 94.5%Language:Shell 2.1%Language:TeX 2.0%Language:Dockerfile 1.4%Language:Procfile 0.0%