oidc-wp / openid-connect-generic

WordPress plugin to provide an OpenID Connect Generic client
https://wordpress.org/plugins/daggerhart-openid-connect-generic/
261 stars 155 forks source link

wp-login.php?redirect_to={mysiteURL} redirect 500 error #544

Open frontend-helper opened 6 months ago

frontend-helper commented 6 months ago

I'm new to WordPress and trying to integrate OAuth client via this plugin. But when I tried to login it is throwing error 500 internal server error.

When I turn on debug mode I see error that redirect_uri is undefined.

Please help me on the issue.

Review Wiki Please be sure to check the GitHub Wiki to see if your question has already been answered.

General usage questions If your question hasn't been answered in the Wiki please be as descriptive as possible when asking your question.

timnolte commented 6 months ago

What IDP are you using when configuring the plugin? Also are you trying to use the alternative redirect URI option? The redirect URI that you need to configure in your IDP is listed on the settings screen and is required to be configured in the IDP when creating a new client.

timnolte commented 6 months ago

What IDP are you using when configuring the plugin? Also are you trying to use the alternative redirect URI option? The redirect URI that you need to configure in your IDP is listed on the settings screen and is required to be configured in the IDP when creating a new client.

Also, are you entering {mysiteURL} somewhere in code? That doesn't look like a valid value.

frontend-helper commented 6 months ago

{MysiteURL} is just a place holder, i'm using my actual domain URL here.

I'm using OAuth 2.0

frontend-helper commented 6 months ago

Exact error is

Fatal error: Call to undefined function apply_filters_deprecated() in /var/www/html/wp-content/plugins/erhart-openid-connect-generic3/includes/openid-connect-generic-client-wrapper.php on line 187.

And where to change the redirect URI ? I can see the alternate redirect uri checkbox but not getting text filed to enter the URL.

In my IDP, I've configured redirectURI as https://mydomain.net/openid-connect-authorize.

Do I need to change anything for wordpress address and site address ?