Closed youssefbennour closed 3 months ago
There are events emitted when the user accepts or rejects an invitation:
@xgp I was testing invitation to see the details of events so I can catch it, and I found that the triggered event is always of type CUSTOM_REQUIRED_ACTION_ERROR, even when the invitation is accepted and everything works fine :
What do you think ?
@rtufisi Can you try to reproduce? In prod for us this is working fine, but we are on an earlier version.
I'm using quay.io/phasetwo/phasetwo-keycloak:25.0.1
How to reproduce: 1 - Login to your keycloak server using admin credentials 2 - Navigate to your realm 3 - Create a new organization 4 - Invite an existing realm member by email 5 - Navigate to the account console and login with the invited user credintials. 6 - After successful login, accept organization(s) invitation(s)
Upon the last step, the logger logs a similar CUSTOM_REQUIRED_ACTION_ERROR as I've provided you with above. I've tried it more than once, but the it always triggers the same error event.
On it
Hei @youssefbennour ,
I've tried to reproduce the issue you mentioned.
If a user accepts an organization invitation a successful event is emitted like in the following screenshot:
If a user accepts the invitation to join a organization a successful CUSTOM_REQUIRED_ACTION event is emitted as in the given screenshot. At the end of the required action execution to perform a cleanup the invitation is removed and a "CUSTOM_REQUIRED_ACTION_ERROR" event is emitted to signal that the invitation was consumed.
Steps I've used to reproduce this issue:
I'm using quay.io/phasetwo/phasetwo-keycloak:25.0.2(25.0.1 has a UI bug in the events tab as described in the bug: https://github.com/keycloak/keycloak/issues/30306)
How to reproduce: 1 - Login to your keycloak server using admin credentials 2 - Navigate to your realm 3 - Create a new organization 4 - Invite an existing realm member by email 5.- Enable "Invitation" in the realm required action settings
please let me know your thoughts
@rtufisi I will test it again, I'm not sure whether the succeeding event was emitted in my case or not. Thanks.
Hi, I have a requirement to execute some operation on my application when a user accept an organization invtation he's been sent. I have been reading the source code, but I can't find an event that's triggered on user invitation accept. Does such an event exists ? If not, could you give suggestions on how I could approach this requirement ?