This service will provide different endpoints. One endpoint is for finalizing a social login in terms of using the authorization code to get the tokens. Finalizing means also to store the social tokens in a mongodb in order to do user management at authorization level. This includes also creating a consumer and application in Kong. The other endpoints are for managing the user logins.
Here an overview where this service will be used:
API:
connect
GET /github
OAuth2 with Github
GET /google
OAuth2 with Google
user
PUT /getToken
Get access token for user
You want to checkout this cool service? Simply start the service and head over to: http://localhost:3000/documentation. We're using swagger to have this super cool API discovery/documentation tool.
Please visit the wiki at Install NodeJS.
You can use Docker to build, test and run your application locally. Simply edit the Dockerfile and run:
docker build -t MY_IMAGE_TAG ./
docker run -it --rm -p 8880:3000 MY_IMAGE_TAG
Alternatively you can use docker-compose to run your application in conjunction with a (local) mongodb instance. Simply execute:
docker-compose up -d