bryanrego
Forum Replies Created
-
Forum: Plugins
In reply to: [Force Login] REST APIThat worked like a charm @kevinvess Thanks!!
Forum: Plugins
In reply to: [Force Login] REST API@kevinvess The Gravity Forms API hooks into the template_redirect action to intercept the request and then performs its authentication, here’s the webapi –
https://github.com/wp-premium/gravityforms/blob/master/includes/webapi/webapi.php
Forum: Plugins
In reply to: [Force Login] REST API@kevinvess i am having trouble bypassing the gravityformsapi from a child site on a multisite install with force login active.
Whats weird is i can reach the gravityformapi from a child site to my main site but not vs versa (from main site to child site). i also tried your adding your suggestion with no luck –
remove_filter( 'rest_authentication_errors', 'v_forcelogin_rest_access', 99 );On main site (/) and the child site (/site2) i have the following in my functions.php as they both have there own child theme –
function my_forcelogin_whitelist( $whitelist ) { // Filter specific pages $whitelist[] = site_url( '/' ); // Get visited URL without query string $url_path = preg_replace('/\?.*/', '', $_SERVER['REQUEST_URI']); // whitelist any page URL within the specified directory and certain pages if ( in_array('gravityformsapi', explode('/', $url_path)) ) { $whitelist[] = site_url($_SERVER['REQUEST_URI']); } return $whitelist; } add_filter('v_forcelogin_whitelist', 'my_forcelogin_whitelist', 10, 1);Forum: Plugins
In reply to: [Force Login] REST APIThanks @kevinvess, that worked. I agree @clorith that a child theme is not a hack, it’s actually a best practice.
Forum: Plugins
In reply to: [authLdap] Multisite issueHey there!
I am running version 1.5.1 on my multisite setup and its running great. I tried upgrading to 2.0 a while back but it didn’t work. Whats your recommend upgrade approach to going to the latest release with a multisite setup?
Any plans for Single Sign On?
Thanks! This plugin rocks! been running solid for 3 months…
Forum: Plugins
In reply to: [Force Login] REST APIHi Kevin,
I tried adding remove_filter( ‘rest_authentication_errors’, ‘v_forcelogin_rest_access’ ); to my Divi child theme to allow access to the Gravity Forms JSON REST API and it didn’t work. Any other suggestions as to how i can enable access to this API?