SSO, once and for all
- Swagger Hub: https://sso.jiwai.win/api
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.
https://uni-sso-jeff-tian.cloud.okteto.net/
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.
Log streamed to elastic search
- https://uniheart-2072617778.k4a.bonsaisearch.net/app/kibana#/discover
- https://uni-sso-kibana.herokuapp.com/
-
Grafana: https://jefftian.grafana.net/d/_79iEbWMz/uni-sso-registered-users?orgId=1
-
Swagger stats: https://sso.jiwai.win/swagger-stats/ux#/
- https://uni-sso.onrender.com (Direct, or uni-sso's pure front-end)
- https://sso.pa-ca.me/ (Direct, or uni-sso's pure front-end)
- https://pa-ca.me (Indirect, will redirect to https://sso.pa-ca.me to redirect back)
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
- Switch to fastify (Already deployed to okteto, without something not working due to passport not supported by fastify), challenges:
- auth (don't use passport)