You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Use OpenID Connect to log in to other webservices using your own WordPress.
15
15
16
16
With this plugin you can use your own WordPress install to authenticate with a webservice that provides [OpenID Connect](https://openid.net/connect/) to implement Single-Sign On (SSO) for your users.
17
17
18
-
The plugin is currently only configured using constants and hooks as follows:
18
+
After installing plugin on your WordPress website and before activating it, follow the steps below.
And make them available to the plugin as follows (this needs to be added before WordPress loads):
28
+
And make them available to the plugin as below (this needs to be added before WordPress loads). This should be added to the `wp-config.php` file of your WordPress installation. Note, that it is important to add the `define` statements before the line `require_once ABSPATH . 'wp-settings.php';`. Otherwise, your RSA keys might not be visible to the rest of the WordPress website.
Defineyourclientsbyaddingafilterto`oidc_registered_clients`inaseparatepluginfileor`functions.php`ofyourthemeorinaMU-pluginasbelow.TheeasiestwaywouldbetoaddfilterthroughWordPressAdmininterfacebygoingtoAppearance-> Theme file editor -> choose Theme Functions (functions.php) on the right hand side menu. You can add the code to the end of the file before `?>`.
You should be able to go to `https://<your_wordpress_domain>/.well-known/openid-configuration`. This endpoint will list the endpoints of the authorization flow. Namely, three endpoints will be defined:
`wp-json` is where the REST routes are defined for your WordPress website.
76
+
69
77
### Exclude URL from caching
70
78
71
79
-`example.com/wp-json/openid-connect/userinfo`: We implement caching exclusion measures for this endpoint by setting `Cache-Control: 'no-cache'` headers and defining the `DONOTCACHEPAGE` constant. If you have a unique caching configuration, please ensure that you manually exclude this URL from caching.
0 commit comments