Security

JWT Authentication

Description

JSON Web Token is an open standard that defines a compact and self-contained way for securely transmitting information between parties as a JSON object.

Where to use

  • Stateless API Auth.

Real World Example

User logs in, gets a JWT. Sends JWT with every request. Server validates signature.

Code Example

class JWTAuthentication:\n    def __init__(self):\n        pass\n\n    def execute(self):\n        print('Executing JWT Authentication')