About Project
This project revolves around the Proof of Concept (POC) for testing the ability of a user to log in via WordPress (WP) and interact with Django using the same authentication. The primary objective is to establish seamless user connectivity and functionality across the WP and Django platforms.
- API Tools
- Swagger UI
- ReDoc
- Quick Links
- My Design Requests
- Admin Panel
- API Root
Description
This project demonstrates the process of user authorization between WordPress and Django platforms. A user logs in on the WordPress site, generating a JSON Web Token (JWT) via a custom plugin. The token is subsequently used by Django to validate the user and grant access to its admin panel, enabling a unified authentication flow between both systems.
The implemented POC is available for testing at:
How It Works
A demonstration video shows the complete workflow:
- A new user is created in the WordPress admin panel.
- The user then logs in through the WordPress site login form.
- Upon successful login, the WordPress plugin generates a JWT token.
- Django validates this token and authorizes the user to access its admin panel.
To make this possible, WordPress is configured to issue JWT tokens using a dedicated plugin and a custom login flow. Django then verifies the received token and authenticates the corresponding user based on the information encoded in the JWT.
This Proof of Concept confirms that a shared authentication mechanism between WordPress and Django can be implemented efficiently using JWT, allowing seamless user identity propagation between the two systems.