8000 Review how transaction is being handled when creating members due to the commit happening when leveraging UsersResource.createUser · Issue #28210 · keycloak/keycloak · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Review how transaction is being handled when creating members due to the commit happening when leveraging UsersResource.createUser #28210
Closed
@pedroigor

Description

@pedroigor

In order to leverage the User API to create organization members, we are invoking the UsersResource.createUser method.

However, that method does not rely on the usual mechanism to handle transactions and forces a commit whenever that method is called.

As a consequence, we are starting a new transaction after calling that method in order to associate the newly created user to an organization.

We need to review this and ideally remove that commit call in UsersResource so that we can create the user and associate it as a member within a single transaction.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0