Initial required files
This commit is contained in:
@@ -46,3 +46,10 @@ wp-config.php
|
|||||||
# Note: If you wish to whitelist themes,
|
# Note: If you wish to whitelist themes,
|
||||||
# uncomment the next line
|
# uncomment the next line
|
||||||
#/wp-content/themes
|
#/wp-content/themes
|
||||||
|
|
||||||
|
*.zip
|
||||||
|
.DS_Store
|
||||||
|
.idea/
|
||||||
|
vendor/
|
||||||
|
node_modules/
|
||||||
|
.env
|
||||||
@@ -1,2 +1,26 @@
|
|||||||
# wp-authenticate-bridge
|
# dabestaniha-authenticate-bridge
|
||||||
|
|
||||||
Authenticate WordPress user via json web token from Laravel Application.
|
Authenticate WordPress user via json web token from Laravel Application.
|
||||||
|
|
||||||
|
|
||||||
|
## Features
|
||||||
|
- Create user if not exists
|
||||||
|
- Login via JWT token
|
||||||
|
- Admin settings page
|
||||||
|
- Custom invalid token page
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
Send users to:
|
||||||
|
https://your-wp-site.com/dabestaniha/login?laravel_login_token=TOKEN
|
||||||
|
|
||||||
|
With required data encoded in the token.
|
||||||
|
|
||||||
|
Payload JWT:
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"email": "user@example.com",
|
||||||
|
"name": "Test User",
|
||||||
|
"exp": 1752575400
|
||||||
|
}
|
||||||
|
```
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<?php
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<?php
|
||||||
Reference in New Issue
Block a user