1.0.0 • Published 8 months ago
css-direct-sso-auth v1.0.0
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.jsonto./config/google-secret.json - edit
./config/google-secret.json.jsonwith your credentials
Same goes with github or any other SSO provider.
install and start
npm i
npm run build
npm run startTo run test or try the component, we have a helpful client:
cd client
npm i
npm run devhow 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
1.0.0
8 months ago