Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshcanhelp/auth0-wp-lite
The simplest possible Auth0 integration to WordPress
https://github.com/joshcanhelp/auth0-wp-lite
Last synced: 24 days ago
JSON representation
The simplest possible Auth0 integration to WordPress
- Host: GitHub
- URL: https://github.com/joshcanhelp/auth0-wp-lite
- Owner: joshcanhelp
- License: gpl-2.0
- Created: 2019-07-17T22:04:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-17T23:56:47.000Z (over 5 years ago)
- Last Synced: 2024-12-18T01:47:30.525Z (25 days ago)
- Language: PHP
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Auth0 Lite
This is a quick experiment with adding the simplest possible Auth0 integration to WordPress.
**Important:** This is code NOT tested, reviewed, or security checked and should NOT be used in production!
## Getting Started
1. Create a new Application in [Auth0](https://manage.auth0.com/#/applications).
2. Give it a name and select **Regular Web Application**.
3. Set your **Allowed Callback URLs** to `[SITE URL]/index.php?auth0=callback`.
4. Set your **Allowed Logout URLs** to WordPress home page URL.
5. Set your **JWT Expiration (seconds)** to the session length you want for WordPress.
6. Click **Show Advanced Settings** then **Grant Types** and turn everything off except **Implicit**
7. Click **Save Changes**.
8. In your `wp-config.php` file, add the following lines using the Client ID and Domain from your Application:```php
define( 'AUTH0_LITE_DOMAIN', 'YOUR_TENANT_DOMAIN' );
define( 'AUTH0_LITE_CLIENT_ID', 'YOUR_APPLICATION_CLIENT_ID' );
```