-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting started #92
Comments
Hi @flcdrg, these are great questions, we probably need to better document this. The Concerning the
So option 2. is probably better since it doesn't depend on which theme is enabled. You can create a new plugin that has the single purpose of configuring the // wp-content/plugins/configure-openid/plugin.php
/**
* Plugin Name: configure-openid
*/
add_filter( 'oidc_registered_clients', 'my_oidc_clients' );
function my_oidc_clients() {
// ...
} You would also need to "map" the I hope this helps, let me know if something isn't clear. |
Opened #93 to improve the docs. |
Here's what I have found so far concerning OIDC clients. Considering the example code:
You can check the WP Site health for error/success messages from the plugin.
EDIT: Figured the latter problem out. Not related to the plugin. |
For the benefit of future visitors, was the solution to your problem to go into the Wordpress Admin, then head to Settings -> Permalinks, and switch to use "Post name" as your Permalink Structure, instead of "Plain" ? That's the issue I had! :) |
That's good to know, but my issue was different. I was initially trying to set up my OIDC server on the main site of a WordPress multi-side network. The main site is using BuddyBoss Platform and relies on an array of different add-on plugins. For some reasons, the non-REST endpoints resulted in a 404 error. So instead of deactivating every plugin one by one to identify which one was interfering, I managed to make the OIDC server work by simply setting it up on a subsite of the network, with minimal plugins activated, and I was good to go! |
I installed the OpenID Connect Server plugin to the WordPress website Is there a way for me to get the REST routes working? |
For me, the issue was that I defined RSA keys in |
Hi there,
I’m pretty brand new to running/configuring WordPress, so apologies if these questions seem silly. I’ve read the README, but I’m still a bit unclear as to which files I should edit to add the configuration to.
I’ve got WordPress running in a Docker container, so I presume it’s a pretty vanilla install. I’ve created the public and private keys, but I’m not clear which file I should add the
define( 'OIDC_PUBLIC_KEY'
bits? Is the/index.php
appropriate?For the
add_filter(
lines, it mentions using afunctions.php
file from a theme. I appear to have three themes preinstalled. Wouldwp-content/themes/twentytwentyone/functions.php
be the appropriate file to append this to?Am I right to assume that once the plugin is configured correctly, that if my site is running on http://localhost:8080/ that I should be able to hit http://localhost:8080/.well-known/openid-configuration ?
The text was updated successfully, but these errors were encountered: