Development
Running integration tests
Execute tests
Provisioning is happening inside TestMain
go test -v -tags integration
Testing locally
Build project container, it will produce docker image:
nildev build github.com/nildev/auth
Create local.env
file in root dir with content:
ND_SIGN_KEY=__YOUR_VAL__
ND_ENV=__YOUR_VAL__
ND_SIGN_KEY=__YOUR_VAL__
ND_GITHUB_SCOPE=__YOUR_VAL__
ND_GITHUB_CLIENT_ID=__YOUR_VAL__
ND_GITHUB_SECRET=__YOUR_VAL__
ND_DO_CLIENT_ID=__YOUR_VAL__
ND_DO_SECRET=__YOUR_VAL__
ND_DO_SCOPE=__YOUR_VAL__
ND_DO_REDIRECT_URL=__YOUR_VAL__
Run containers:
docker-compose -f docker-compose.yml up -d
Execute HTTP request:
curl -X GET http://$(docker-machine ip nildev):8080/api/v1/auth/github/authCode -v
Project Details
Release Notes
See the releases tab for more information on each release.
Contributing
See CONTRIBUTING for details on submitting patches and contacting developers via IRC and mailing lists.
License
Project is released under the MIT license. See the LICENSE file for details.
Specific components of project use code derivative from software distributed under other licenses; in those cases the appropriate licenses are stipulated alongside the code.