Skip to content

slidewiki/authorization-service

Repository files navigation

authorization-service

Build Status License Language Framework Webserver

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: OAuth2 workflow while using a browser

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.

Install NodeJS


Please visit the wiki at Install NodeJS.

Use Docker to run/test your application


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

About

Service for the gab between finishing social login and doing OAuth2 with Kong.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •