1.0.0 • Published 3 months ago

css-direct-sso-auth v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

setup

First you need to create OAuth client, and copy clientId and clientSecret value to ./config/github-secret.json

  • create a OAuth client account on google cloud
  • copy ./config/google-secret-example.json to ./config/google-secret.json
  • edit ./config/google-secret.json.json with your credentials

Same goes with github or any other SSO provider.

install and start

npm i
npm run build
npm run start

To run test or try the component, we have a helpful client:

cd client
npm i
npm run dev

how to run E2E test

  • start ./client/ with npm run dev ( will run on port 1234 )
  • put the name ( usually firt name + family name ) in the .env like:
ACCOUNT_NAME="john doe"
  • then run the server with npm run start ( will run on port 4000 )
  • for the first test: npm run test:setup
    • will ask you to login with a google account and store the cookie for next test
  • after that, just run npm run test