Code Monkey home page Code Monkey logo

token-service's Introduction

token-service

A example of Tornado application, service-api, data-store and oauth2 authentication.

This program just is written as study and demonstration. I beleave Tornado is best framework in such application.

  • providing token for user who is logged in.
    • Users are autheticated by github oauth2. So oauth2 set-up is needed for this application in github as a resource owner.
  • check its legal for inquired token by rest api.
  • use sqlite3 forpermanent datastore.

requirement

  • tornado 6.x
  • sqlite3
  • pycurl

how to run and use?

  • get client-id, client-secret by setting up your github oauth2 application.
  • edit configs/token-service.yaml
  • python3 tokenservice/tornado/server.py --config=configs/token-service.yaml

, and

  • access to homepage in setting
  • copy token string issued
  • a example of use curl https://token-service/query/<github-login>/?token=...

to study..

  • consider token life cycle.
  • data-store robustness and scale-out.
  • make more api to be useful processing with token...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.