openid-connect-generic
openid-connect-generic copied to clipboard
How to update the user role on the Keycloak server from WordPress ?
Hello,
I've looked and searched and I only found how to do the opposite, which is updating the user role on WordPress based on the user claim.
What I want to do though is update the user role on the Keycloak server after the user subscribes to a MemberPress subscription. The user must log in before purchasing the membership so I can't do that using most hooks like openid-connect-generic-update-user-using-current-claim or openid-connect-generic-user-logged-in. After the purchase is done, a user role is added and I want that change to happen on the server side as well.
What are my options to do that ? Is there a way to send this info back to the Keycloak server using this plugin ? Maybe other methods ?
Thanks in advance :)