Filter redirect URL before stashing it to a cookie

isekai
Sarah Lewis 6 years ago
parent f33225fc2c
commit 39ae1f8a8f

@ -80,6 +80,8 @@ class OpenID_Connect_Generic_Login_Form {
} }
} }
$redirect_url = apply_filters( 'openid-connect-generic-cookie-redirect-url', $redirect_url );
setcookie( $this->client_wrapper->cookie_redirect_key, $redirect_url, $redirect_expiry, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); setcookie( $this->client_wrapper->cookie_redirect_key, $redirect_url, $redirect_expiry, COOKIEPATH, COOKIE_DOMAIN, is_ssl() );
} }
} }

@ -14,14 +14,15 @@ Notes
Spec Doc - http://openid.net/specs/openid-connect-basic-1_0-32.html Spec Doc - http://openid.net/specs/openid-connect-basic-1_0-32.html
Filters Filters
- openid-connect-generic-alter-request - 2 args: request array, specific request op - openid-connect-generic-alter-request - 3 args: request array, plugin settings, specific request op
- openid-connect-generic-settings-fields - modify the fields provided on the settings page - openid-connect-generic-settings-fields - modify the fields provided on the settings page
- openid-connect-generic-login-button-text - modify the login button text - openid-connect-generic-login-button-text - modify the login button text
- openid-connect-generic-user-login-test - (bool) should the user be logged in based on their claim - openid-connect-generic-cookie-redirect-url - modify the redirect url stored as a cookie
- openid-connect-generic-user-creation-test - (bool) should the user be created based on their claim - openid-connect-generic-user-login-test - (bool) should the user be logged in based on their claim
- openid-connect-generic-auth-url - modify the authentication url - openid-connect-generic-user-creation-test - (bool) should the user be created based on their claim
- openid-connect-generic-alter-user-claim - modify the user_claim before a new user is created - openid-connect-generic-auth-url - modify the authentication url
- openid-connect-generic-alter-user-data - modify user data before a new user is created - openid-connect-generic-alter-user-claim - modify the user_claim before a new user is created
- openid-connect-generic-alter-user-data - modify user data before a new user is created
Actions Actions
- openid-connect-generic-user-create - 2 args: fires when a new user is created by this plugin - openid-connect-generic-user-create - 2 args: fires when a new user is created by this plugin

Loading…
Cancel
Save