diwamishra21 / flask-API-JWT

This project is a simple flask API to authorize users using JWT(JSON Web Tokens). User can access public API directly but after login they needed token to use private APIs. This is a standard way to secure your API from unauthorize access.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flask-API-JWT

This project is a simple flask API to authorize users using JWT(JSON Web Tokens). User can access public API directly but after login they needed token to use private APIs. This is a standard way to secure your API from unauthorize access.

prerequisites-

  • python
  • Flask

Details-

  • Flask api with JWT Token
  • protected URLs can only be accessible using token

Running this Project

Pictorial View

Running App View -

alt text

Public/unprotected API -

alt text

Accessing protected API without token -

alt text

Login API -

alt text

Login API Response-

alt text

Protected API Response using Token-

alt text

Lets use Postman for same

Postman Login API -

alt text

Postman Protected API Response using Token-

alt text

Thanks for Visiting 🙏

About

This project is a simple flask API to authorize users using JWT(JSON Web Tokens). User can access public API directly but after login they needed token to use private APIs. This is a standard way to secure your API from unauthorize access.


Languages

Language:Python 100.0%