Djagno grpc authentication service with jwt auth

Overview

Django gRPC authentication service


STEP 1: Install packages

pip install -r requirements.txt

STEP 2: Make migrations and migrate

python manage.py makemigrations
python manage.py migrate

STEP 3: Generate proto files

python manage.py generateproto --model account.models.User  --file proto/user.proto
python manage.py generateproto --model account.models.Book  --file proto/book.proto

STEP 4: Generate gRPC code

python -m grpc_tools.protoc --proto_path=./ --python_out=./ --grpc_python_out=./ proto/auth.proto
python -m grpc_tools.protoc --proto_path=./ --python_out=./ --grpc_python_out=./ proto/user.proto
python -m grpc_tools.protoc --proto_path=./ --python_out=./ --grpc_python_out=./ proto/book.proto 

STEP 5: Run server

python manage.py grpcrunserver
You might also like...
Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.

Welcome to django-allauth! Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (soc

Mock authentication API that acceccpts email and password and returns authentication result.

Mock authentication API that acceccpts email and password and returns authentication result.

The ultimate Python library in building OAuth, OpenID Connect clients and servers. JWS,JWE,JWK,JWA,JWT included.

Authlib The ultimate Python library in building OAuth and OpenID Connect servers. JWS, JWK, JWA, JWT are included. Authlib is compatible with Python2.

An open source Flask extension that provides JWT support (with batteries included)!

Flask-JWT-Extended Features Flask-JWT-Extended not only adds support for using JSON Web Tokens (JWT) to Flask for protecting views, but also many help

Strong, Simple, and Precise security for Flask APIs (using jwt)

flask-praetorian Strong, Simple, and Precise security for Flask APIs API security should be strong, simple, and precise like a Roman Legionary. This p

Strong, Simple, and Precise security for Flask APIs (using jwt)

flask-praetorian Strong, Simple, and Precise security for Flask APIs API security should be strong, simple, and precise like a Roman Legionary. This p

The ultimate Python library in building OAuth, OpenID Connect clients and servers. JWS,JWE,JWK,JWA,JWT included.

Authlib The ultimate Python library in building OAuth and OpenID Connect servers. JWS, JWK, JWA, JWT are included. Authlib is compatible with Python2.

Flask JWT Router is a Python library that adds authorised routes to a Flask app.
Flask JWT Router is a Python library that adds authorised routes to a Flask app.

Read the docs: Flask-JWT-Router Flask JWT Router Flask JWT Router is a Python library that adds authorised routes to a Flask app. Both basic & Google'

Brute force a JWT token. Script uses multithreading.
Brute force a JWT token. Script uses multithreading.

JWT BF Brute force a JWT token. Script uses multithreading. Tested on Kali Linux v2021.4 (64-bit). Made for educational purposes. I hope it will help!

Comments
  • Configure Renovate

    Configure Renovate

    Mend Renovate

    Welcome to Renovate! This is an onboarding PR to help you understand and configure settings before regular Pull Requests begin.

    🚦 To activate Renovate, merge this Pull Request. To disable Renovate, simply close this Pull Request unmerged.


    Detected Package Files

    • requirements.txt (pip_requirements)

    Configuration

    🔡 Renovate has detected a custom config for this PR. Feel free to ask for help if you have any doubts and would like it reviewed.

    Important: Now that this branch is edited, Renovate can't rebase it from the base branch any more. If you make changes to the base branch that could impact this onboarding PR, please merge them manually.

    What to Expect

    With your current configuration, Renovate will create 11 Pull Requests:

    chore(deps): update dependency django to v3.2.16
    • Schedule: ["at any time"]
    • Branch name: renovate/django-3.x
    • Merge into: master
    • Upgrade Django to ==3.2.16
    chore(deps): update dependency sqlparse to v0.4.3
    • Schedule: ["at any time"]
    • Branch name: renovate/sqlparse-0.x
    • Merge into: master
    • Upgrade sqlparse to ==0.4.3
    chore(deps): update dependency asgiref to v3.5.2
    • Schedule: ["at any time"]
    • Branch name: renovate/asgiref-3.x
    • Merge into: master
    • Upgrade asgiref to ==3.5.2
    chore(deps): update dependency djangorestframework to v3.14.0
    • Schedule: ["at any time"]
    • Branch name: renovate/djangorestframework-3.x
    • Merge into: master
    • Upgrade djangorestframework to ==3.14.0
    chore(deps): update dependency grpcio to v1.50.0
    • Schedule: ["at any time"]
    • Branch name: renovate/grpcio-1.x
    • Merge into: master
    • Upgrade grpcio to ==1.50.0
    chore(deps): update dependency grpcio-tools to v1.50.0
    • Schedule: ["at any time"]
    • Branch name: renovate/grpcio-tools-1.x
    • Merge into: master
    • Upgrade grpcio-tools to ==1.50.0
    chore(deps): update dependency protobuf to v3.20.3
    • Schedule: ["at any time"]
    • Branch name: renovate/protobuf-3.x
    • Merge into: master
    • Upgrade protobuf to ==3.20.3
    chore(deps): update dependency pyjwt to v2.6.0
    • Schedule: ["at any time"]
    • Branch name: renovate/pyjwt-2.x
    • Merge into: master
    • Upgrade PyJWT to ==2.6.0
    chore(deps): update dependency django to v4
    • Schedule: ["at any time"]
    • Branch name: renovate/django-4.x
    • Merge into: master
    • Upgrade Django to ==4.1.3
    chore(deps): update dependency protobuf to v4
    • Schedule: ["at any time"]
    • Branch name: renovate/protobuf-4.x
    • Merge into: master
    • Upgrade protobuf to ==4.21.9
    chore(deps): update dependency pytz to v2022
    • Schedule: ["at any time"]
    • Branch name: renovate/pytz-2022.x
    • Merge into: master
    • Upgrade pytz to ==2022.6

    🚸 Branch creation will be limited to maximum 2 per hour, so it doesn't swamp any CI resources or spam the project. See docs for prhourlylimit for details.


    ⚠ Dependency Lookup Warnings ⚠

    Please correct - or verify that you can safely ignore - these lookup failures before you merge this PR.

    • Failed to look up pypi dependency pkg_resources

    Files affected: requirements.txt


    ❓ Got questions? Check out Renovate's Docs, particularly the Getting Started section. If you need any further assistance then you can also request help here.


    This PR has been generated by Mend Renovate. View repository job log here.

    opened by renovate[bot] 0
Owner
Saeed Hassani Borzadaran
A Happy Programmer :)
Saeed Hassani Borzadaran
FastAPI extension that provides JWT Auth support (secure, easy to use, and lightweight)

FastAPI JWT Auth Documentation: https://indominusbyte.github.io/fastapi-jwt-auth Source Code: https://github.com/IndominusByte/fastapi-jwt-auth Featur

Nyoman Pradipta Dewantara 468 Jan 1, 2023
Django Auth Protection This package logout users from the system by changing the password in Simple JWT REST API.

Django Auth Protection Django Auth Protection This package logout users from the system by changing the password in REST API. Why Django Auth Protecti

Iman Karimi 5 Oct 26, 2022
JWT authentication for Pyramid

JWT authentication for Pyramid This package implements an authentication policy for Pyramid that using JSON Web Tokens. This standard (RFC 7519) is of

Wichert Akkerman 73 Dec 3, 2021
Django Rest Framework App wih JWT Authentication and other DRF stuff

Django Queries App with JWT authentication, Class Based Views, Serializers, Swagger UI, CI/CD and other cool DRF stuff API Documentaion /swagger - Swa

Rafael Salimov 4 Jan 29, 2022
Boilerplate/Starter Project for building RESTful APIs using Flask, SQLite, JWT authentication.

auth-phyton Boilerplate/Starter Project for building RESTful APIs using Flask, SQLite, JWT authentication. Setup Step #1 - Install dependencies $ pip

sandhika 0 Aug 3, 2022
Authentication with fastapi and jwt cd realistic

Authentication with fastapi and jwt cd realistic Dependencies bcrypt==3.1.7 data

Fredh Macau 1 Jan 4, 2022
CheckList-Api - Created with django rest framework and JWT(Json Web Tokens for Authentication)

CheckList Api created with django rest framework and JWT(Json Web Tokens for Aut

shantanu nimkar 1 Jan 24, 2022
Authentication Module for django rest auth

django-rest-knox Authentication Module for django rest auth Knox provides easy to use authentication for Django REST Framework The aim is to allow for

James McMahon 878 Jan 4, 2023
Foundation Auth Proxy is an abstraction on Foundations' authentication layer and is used to authenticate requests to Atlas's REST API.

foundations-auth-proxy Setup By default the server runs on http://0.0.0.0:5558. This can be changed via the arguments. Arguments: '-H' or '--host': ho

Dessa - Open Source 2 Jul 3, 2020
Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.

Welcome to django-allauth! Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (soc

Raymond Penners 7.7k Jan 1, 2023