LabShare Auth is an authorization and federation service for LabShare applications. It allows applications to use authorization services from various authentication providers using http://passportjs.org/ strategies. LabShare Auth supports the following Oauth authorization flows: Implicit Grant and Authorization Code Grant. It also supports a Basic Auth flow for applications hosted in SharePoint. For more information on the authorization flows, view documentation.
npm install in the root of the auth project.sample-config.json and rename it to config.json.lsc auth start
To run the Auth service with file watchers and automatic reloading in a dev environment refer to this documentation.
Specify the shell.Auth.Url in the Shell's configuration.
Example:
{
"shell": {
"Auth": {
"Url": "http://localhost:7000/_api"
}
}
}
Refer to configuration documentation for additional configuration details.
Unit:
npm test
Integration:
export MYSQL_PORT=3307docker-compose -f docker-compose-test.yml up -dnpm run buildlsc auth testlsc auth test <path> where <path> is a relative path to an integration test module. Example: lsc auth test api/clients_spec.jsexport MSSQL_SA_PASSWORD='IntTest!Passw0rd'docker build -t labshare/mssql_auth_db ./run/mssqldocker run --rm -p 1433:1433 -e SA_PASSWORD=${MSSQL_SA_PASSWORD} --name mssql_auth_db labshare/mssql_auth_dbdocker exec -it mssql_auth_db /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P ${MSSQL_SA_PASSWORD} -l 30 -d master -i /tmp/schema.sqldocker-compose -f docker-compose-test.yml down --rmi alldocker-compose -f docker-compose-test.yml up -dContent type
Image
Digest
sha256:5360aca1a…
Size
126.6 MB
Last updated
about 4 years ago
docker pull labshare/auth-mysql:ce347cc45932f9cbe714b185bc52619146c8d42e