Coder Social home page Coder Social logo

cortexvideoservices / jwt4auth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alesh/jwt4auth

0.0 1.0 0.0 630 KB

This repository contains a library that implements user session, authentication, and authorization. It is based on the use of the JWT access token and refresh token.

License: GNU Lesser General Public License v3.0

Python 58.43% TypeScript 41.57%

jwt4auth's Introduction

jwt4auth library

This repository contains a library that implements user session, authentication, and authorization. It is based on the use of the JWT access token and refreshes token.

The access token is passed to the HTTP the only cookie by default, which should protect it from theft during a cross-site scripting attack.

The refresh token is passed in the body of the response on the login and refresh requests. It is stored in local storage. The refresh token needs to update an access token.

Currently available:

How to start sample application and check it

The best way is to download the repository and run an application in a virtual environment. Run the following commands:

git clone [email protected]:Alesh/jwt4auth.git
cd jwt4auth
python3.8 -m venv .venv
source .venv/bin/activate
pip install -U setuptools
pip install -U pip
pip install -U wheel
pip install nodeenv
nodeenv -p
npm install yarn -g
yarn install
yarn build
python setup.py develop
python -m sample.backend --static-path sample/build

How to use that

There is a good example of a React based app frontend and aiohttp based backend. We hope the sample application helps you to get started using this set of libraries. For more information, see the source code, which is enough documented

jwt4auth's People

Contributors

alesh avatar alex-rzh avatar

Watchers

James Cloos avatar

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.