Add custom attributes support to organization invitations#48842
Open
kota65535 wants to merge 1 commit intokeycloak:mainfrom
Open
Add custom attributes support to organization invitations#48842kota65535 wants to merge 1 commit intokeycloak:mainfrom
kota65535 wants to merge 1 commit intokeycloak:mainfrom
Conversation
9691030 to
c00970f
Compare
0114152 to
5c0f2b1
Compare
Signed-off-by: Tomohiko Ozawa <kota65535@gmail.com>
5c0f2b1 to
c51e773
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes: #48837
Summary
application/jsonrequest body support toinvite-userandinvite-existing-userendpointsChanges
Backend
ORG_INVITATION_ATTRIBUTEtable (jpa-changelog-26.7.0.xml) with FK cascade deleteOrganizationInvitationAttributeEntityJPA entityOrganizationInvitationModelSPI withgetAttributes()/setAttribute()/removeAttribute()InvitationManager.createInvitation()with optionalattributesparameter (backward-compatible default method)@Consumesvariants forinvite-userandinvite-existing-userendpoints alongside existingapplication/x-www-form-urlencodedendpointsOrganizationInvitationUserRequest,OrganizationInvitationExistingUserRequestattributesfield toOrganizationInvitationRepresentationAdmin UI
InviteMemberModal: switch from FormData to JSON body, add key-value attributes input (single-step flow for email invitations)InvitationAttributesModal: reusable attributes modal shared across all invite flowsInvitations.tsx: 2-step flow usingMemberModal(user selection) →InvitationAttributesModal(attributes) for existing user invitationsOrganizations.tsx(user detail page): 2-step flow usingOrganizationModal(org selection) →InvitationAttributesModal(attributes)Invitations: show attributes count with tooltip displaying key-value details on hoverOrganization details → Invite new user
Using
InviteMemberModal:Organization details → Invite existing user
Using
OrganizationModalandInvitationAttributesModal(2-step flow):↓

User details → Send invitation
Using
MemberModalandInvitationAttributesModal(2-step flow):↓

Attributes in an invitation list
Showing the number of the attributes:
Showing the attribute in a tooltip on hover:

Admin Client (JS)
InviteUserRequest/InviteExistingUserRequesttype definitionsinviteUserJson/inviteExistingUserJsonmethods to organizations resourceTests
tests/base/)API
Migration
ORG_INVITATION_ATTRIBUTEtable added injpa-changelog-26.7.0.xmlBackward Compatibility
application/x-www-form-urlencodedendpoints remain unchangedInvitationManagerSPI maintains existing method signatures via default methods