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
Hi, just wondering if there's any way to sync user data (custom fields) between Wordpress and Keycloak? If so, could someone point me in the right direction? Thanks!
The text was updated successfully, but these errors were encountered:
@alerque I don't think there is documentation atm, but I could write up something simple. Currently working on another plugin that will provide a UI for this, but it's probably a few weeks out.
here is a very rough draft to get you started
<?php
add_action( 'openid-connect-generic-user-logged-in', 'my_oidc_user_login' );
functionmy_oidc_user_login( \WP_User$user ) {
// Everything we know about the user from the IDP.$id_token_claim = get_user_meta( $user->ID, 'openid-connect-generic-last-id-token-claim', true );
$subject_identity = get_user_meta( $user->ID, 'openid-connect-generic-subject-identity', true );
$user_claim = get_user_meta( $user->ID, 'openid-connect-generic-last-user-claim', true );
$token_response = get_user_meta( $user->ID, 'openid-connect-generic-last-token-response', true );
// Do something w/ it here...
}
Hi, just wondering if there's any way to sync user data (custom fields) between Wordpress and Keycloak? If so, could someone point me in the right direction? Thanks!
The text was updated successfully, but these errors were encountered: