website/docs: Add Wordpress to Integrations (#1259)

* Create index.mdx

Add Wekan example

* updated to include wekan entry

* Update and rename website/docs/sources.md to website/docs/sources/index.md

Break Sources into individual pages.

* Update and rename website/docs/sources/index.md to website/docs/sources/ldap/index.md

* Create index.md

* Update index.md

* Update index.md

* Create index.md

* Create index.md

* Create index.md

* Update index.md

* Update index.md

* Update index.md

* Create index.md

* discord images

* spacing

* Added discord

* discord changes

* Added sources breakdown to the sidebar

* Fixed the saml title

* Added github examples

* fixed formatting

* Changed file path, updated sidebar, added google.

* fixed a spelling mistake

* Cleaned up formatting

* Fixed Notes

* docs: fix typo in logout url

* docs: added wordpress integration
This commit is contained in:
Ernie 2021-08-16 04:33:53 -04:00 committed by GitHub
parent 8fe38b528b
commit f93e2c5eb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 82 additions and 1 deletions

View File

@ -47,7 +47,7 @@ In Portainer, under _Settings_, _Authentication_, Select _OAuth_ and _Custom_
- Access Token URL: `https://authentik.company/application/o/token/` - Access Token URL: `https://authentik.company/application/o/token/`
- Redirect URL: `https://port.company` - Redirect URL: `https://port.company`
- Resource URL: `https://authentik.company/application/o/userinfo/` - Resource URL: `https://authentik.company/application/o/userinfo/`
- Logout URL: `https://authentik.company/o/portainer/end-session/` - Logout URL: `https://authentik.company/application/o/portainer/end-session/`
- User Identifier: `email` - User Identifier: `email`
- Scopes: `email opennid profile` - Scopes: `email opennid profile`

View File

@ -0,0 +1,80 @@
---
title: Wordpress
---
## What is Wordpress
From https://en.wikipedia.org/wiki/WordPress
:::note
WordPress is a free and open-source content management system written in PHP and paired with a MySQL or MariaDB database. Features include a plugin architecture and a template system, referred to within WordPress as Themes
:::
:::note
There are many different plugins for Wordpress that allow you to setup SSO using different authentication methods. The plugin that is explained in this tutorial is "OpenID Connect Generic" version 3.8.5 by daggerhart. This plugin uses OpenID/OAUTH2 and is free without paywalls or subscriptions at the time of writing this. The plugin is available for free in the Wordpress Plugin gallery.
:::
## Preparation
The following placeholders will be used:
- `wp.company` is the FQDN of Wordpress.
- `authentik.company` is the FQDN of authentik.
### Step 1 - Authentik
In authentik, under _Providers_, create an _OAuth2/OpenID Provider_ with these settings:
:::note
Only settings that have been modified from default have been listed.
:::
**Protocol Settings**
- Name: Wordpress
- Client type: Confidential
- Client ID: Copy and Save this for Later
- Client Secret: Copy and Save this for later
- Redirect URIs/Origins: `https://wp.company/wp-admin/admin-ajax.php?action=openid-connect-authorize`
### Step 2 - Wordpress
:::note
Assumption is being made that you have successfully downloaded and activated the required plugin "OpenID Connect Generic" by daggerhart
:::
In Wordpress, under _Settings_, Select _OpenID Connect Client_
::note
Only settings that have been modified from default have been listed.
:::
- Login Type: OpenID Connect Button of Login (This option display a button to login using OpenID as well as local WP login)
- Client ID: Client ID from step 1
- Client Secret: Client Secret from step 1
- OpenID Scope: `email profile openid`
- Login Endpoint URL: `https://authentik.company/application/o/authorize/`
- Userinfo Endpoint URL: `https://authentik.company/application/o/userinfo/`
- Token Validation Endpoint URL: `https://authentik.company/application/o/token/`
- End Session Endpoint URL: `https://authentik.company/application/o/wordpress/end-session/`
:::note
Review each setting and choose the ones that you require for your installation. Examples of popular settings are _Link Existing Users_, _Create user if does not exist_, and _Enforce Privacy_
:::
### Step 3 - Authentik
In authentik, create an application which uses this provider. Optionally apply access restrictions to the application using policy bindings.
- Name: Wordpress
- Slug: wordpress
- Provider: wordpress
- Launch URL: https://wp.company
## Notes
:::note
OpenID Connect Generic Client Reference link: https://wordpress.org/plugins/daggerhart-openid-connect-generic/
:::

View File

@ -98,6 +98,7 @@ module.exports = {
"integrations/services/vmware-vcenter/index", "integrations/services/vmware-vcenter/index",
"integrations/services/wekan/index", "integrations/services/wekan/index",
"integrations/services/wiki-js/index", "integrations/services/wiki-js/index",
"integrations/services/wordpress/index",
"integrations/services/zabbix/index", "integrations/services/zabbix/index",
], ],
}, },