8000 Add support for more update attribute user events by ksushant881 · Pull Request #51017 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Add support for more update attribute user events - #51017

Open
ksushant881 wants to merge 8 commits into
keycloak:mainfrom
ksushant881:add-support-for-user-events
Open

ksushant881 wants to merge 8 commits into
keycloak:mainfrom
ksushant881:add-support-for-user-events

Conversation

@ksushant881
Copy link
Copy Markdown
Contributor

Closes #50453

Copilot AI balanced review requested due to automatic review settings July 19, 2026 14:22
@ksushant881
ksushant881 requested a review from a team as a code owner July 19, 2026 14:22
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds workflow triggers for user credential, email, profile, and consent updates.

Changes:

  • Adds five workflow event providers with optional filters.
  • Registers the providers through Java SPI.
  • Adds integration coverage for trigger activation.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
WorkflowProviderEventsTest.java Tests new triggers.
WorkflowEventProviderFactory service file Registers providers.
UserUpdateProfileWorkflowEventProvider.java Handles profile updates.
UserUpdateProfileWorkflowEventFactory.java Defines profile trigger.
UserUpdateEmailWorkflowEventProvider.java Handles email updates.
UserUpdateEmailWorkflowEventFactory.java Defines email trigger.
UserUpdateCredentialWorkflowEventProvider.java Handles credential updates.
UserUpdateCredentialWorkflowEventFactory.java Defines credential-update trigger.
UserUpdateConsentWorkflowEventProvider.java Handles consent updates.
UserUpdateConsentWorkflowEventFactory.java Defines consent trigger.
UserRemoveCredentialWorkflowEventProvider.java Handles credential removal.
UserRemoveCredentialWorkflowEventFactory.java Defines credential-removal trigger.

Copilot AI review requested due to automatic review settings July 22, 2026 07:22
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (7)

model/jpa/src/main/java/org/keycloak/models/workflow/events/UserUpdateCredentialWorkflowEventProvider.java:35

  • RESET_PASSWORD represents the password-reset flow, not a completed credential update; the actual update path emits UPDATE_CREDENTIAL. Including it here can run update-credential workflows when a reset is merely initiated.
        return EventType.UPDATE_CREDENTIAL.equals(event.getType()) || EventType.RESET_PASSWORD.equals(event.getType());

model/jpa/src/main/java/org/keycloak/models/workflow/events/UserUpdateCredentialWorkflowEventProvider.java:48

  • The admin credential-removal endpoint emits OperationType.ACTION, so this condition classifies a removal as an update. Require the update operation explicitly to keep user-update-credential from firing on removals.
        return RESET_PASSWORD_PATH.matcher(path).matches() 
            || (CREDENTIALS_PATH.matcher(path).matches() && !OperationType.DELETE.equals(adminEvent.getOperationType()));

model/jpa/src/main/java/org/keycloak/models/workflow/events/UserRemoveCredentialWorkflowEventProvider.java:42

  • The actual admin removal endpoint records this operation as ACTION (services/.../UserResource.java:890), so admin credential removals never activate this provider. Match the operation emitted by that endpoint.
        if (!OperationType.DELETE.equals(adminEvent.getOperationType())) {

model/jpa/src/main/java/org/keycloak/models/workflow/events/UserUpdateEmailWorkflowEventProvider.java:54

  • A non-null email only means the submitted user representation contains an email, not that it changed. Admin clients commonly submit full representations, so unrelated user updates will incorrectly activate user-update-email; the producer/provider contract needs actual before/after change data.
                return rep != null && rep.getEmail() != null;

model/jpa/src/main/java/org/keycloak/models/workflow/events/UserUpdateProfileWorkflowEventProvider.java:104

  • This checks whether the requested attribute was present in the admin representation, not whether it was updated. A full user representation therefore activates filtered profile workflows for unchanged attributes, contrary to the attribute-update filter contract.
                UserRepresentation rep = JsonSerialization.readValue(representation, UserRepresentation.class);

model/jpa/src/main/java/org/keycloak/models/workflow/events/UserUpdateConsentWorkflowEventProvider.java:29

  • user-update-consent also fires for GRANT_CONSENT, although issue #50453 requests the distinct Update consent event. A new consent grant should not execute workflows configured for updates.
        return EventType.UPDATE_CONSENT.equals(event.getType()) || EventType.GRANT_CONSENT.equals(event.getType());

model/jpa/src/main/java/org/keycloak/models/workflow/events/UserUpdateConsentWorkflowEventProvider.java:41

  • The only matching admin mutation is consent revocation (UserResource.java:644-666), so this makes a user-update-consent workflow run for a revoke rather than an update. Do not claim these admin events unless a genuine admin consent-update operation is available.
        return CONSENTS_PATH.matcher(path).matches();

Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 6 comments.

Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (6)

model/jpa/src/main/java/org/keycloak/models/workflow/events/UserUpdateCredentialWorkflowEventProvider.java:35

  • RESET_PASSWORD is a distinct event used by the forgot-credentials flow, not the requested UPDATE_CREDENTIAL event, so this activates the workflow for password-reset events that are not credential updates. Restrict user events to UPDATE_CREDENTIAL; the test must emit that event with Details.CREDENTIAL_TYPE=password.
        return EventType.UPDATE_CREDENTIAL.equals(event.getType()) || EventType.RESET_PASSWORD.equals(event.getType());

model/jpa/src/main/java/org/keycloak/models/workflow/events/UserUpdateCredentialWorkflowEventProvider.java:48

  • The admin credential-removal endpoint uses this exact path with OperationType.ACTION (UserResource.java:871-894), so the !DELETE check classifies removals as credential updates. Only accept an actual UPDATE operation for this branch.
        return RESET_PASSWORD_PATH.matcher(path).matches() 
            || (CREDENTIALS_PATH.matcher(path).matches() && !OperationType.DELETE.equals(adminEvent.getOperationType()));

model/jpa/src/main/java/org/keycloak/models/workflow/events/UserRemoveCredentialWorkflowEventProvider.java:43

  • Admin credential removal is emitted as OperationType.ACTION, not DELETE (UserResource.java:890), so real admin removals never reach this workflow provider. Match the operation used by that endpoint.
        if (!OperationType.DELETE.equals(adminEvent.getOperationType())) {
            return false;

model/jpa/src/main/java/org/keycloak/models/workflow/events/UserUpdateConsentWorkflowEventProvider.java:29

  • GRANT_CONSENT is a separate event for creating consent, while this trigger is specifically for the requested UPDATE_CONSENT event. Including it causes user-update-consent workflows to run on initial grants as well as updates.
        return EventType.UPDATE_CONSENT.equals(event.getType()) || EventType.GRANT_CONSENT.equals(event.getType());

model/jpa/src/main/java/org/keycloak/models/workflow/events/UserUpdateEmailWorkflowEventProvider.java:54

  • Presence of email in an admin PUT representation does not mean the email changed; clients commonly submit a full UserRepresentation, so an unrelated profile update will activate user-update-email. Record or compare the old email when handling the admin update and filter on an actual change.
        String representation = adminEvent.getRepresentation();
        if (representation != null && !representation.isBlank()) {
            try {
                UserRepresentation rep = JsonSerialization.readValue(representation, UserRepresentation.class);
                return rep != null && rep.getEmail() != null;

model/jpa/src/main/java/org/keycloak/models/workflow/events/UserUpdateProfileWorkflowEventProvider.java:112

  • An admin event representation contains submitted values, not the set of changed attributes. With a normal full user PUT, non-null firstName/email fields make these filters match even when only another attribute changed; capture changed-field details before the update and evaluate those instead.
                if ("email".equalsIgnoreCase(configParameter)) {
                    return rep.getEmail() != null;
                } else if ("firstName".equalsIgnoreCase(configParameter) || "first_name".equalsIgnoreCase(configParameter)) {
                    return rep.getFirstName() != null;
                } else if ("lastName".equalsIgnoreCase(configParameter) || "last_name".equalsIgnoreCase(configParameter)) {

@keycloak-github-bot
Copy link
Copy Markdown

Unreported flaky test detected

If the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR.

org.keycloak.testsuite.forms.MultipleTabsLoginTest#testEmptyBaseUrl

Keycloak CI - Forms IT (firefox)

org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
	at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
...

Report flaky test

@keycloak-github-bot keycloak-github-bot Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unreported flaky test detected, please review

Copilot AI review requested due to automatic review settings July 22, 2026 20:15
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 3 comments.

Comments suppressed due to low confidence (1)

model/jpa/src/main/java/org/keycloak/models/workflow/events/UserUpdateConsentWorkflowEventProvider.java:41

  • This admin-event matcher classifies consent revocation as user-update-consent: the only matching admin endpoint is DELETE users/{id}/consents/{client}, which emits ACTION, while the equivalent account operation emits REVOKE_GRANT. Restrict this provider to actual consent updates (or omit admin support until such an operation exists).
        return CONSENTS_PATH.matcher(path).matches();

Copilot AI review requested due to automatic review settings August 19, 2026 14:20
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.

Suppressed comments (6)

model/jpa/src/main/java/org/keycloak/models/workflow/events/UserUpdateCredentialWorkflowEventProvider.java:35

  • evaluate() contains logic for EventType.RESET_PASSWORD, but supports(Event) only returns true for UPDATE_CREDENTIAL, making the RESET_PASSWORD branch unreachable for end-user events. If the intent is for user-update-credential to also trigger for password resets, update supports(Event) (and potentially create(Event) if applicable) to include RESET_PASSWORD.
    public boolean supports(Event event) {
        return EventType.UPDATE_CREDENTIAL.equals(event.getType());
    }

model/jpa/src/main/java/org/keycloak/models/workflow/events/UserUpdateCredentialWorkflowEventProvider.java:94

  • evaluate() contains logic for EventType.RESET_PASSWORD, but supports(Event) only returns true for UPDATE_CREDENTIAL, making the RESET_PASSWORD branch unreachable for end-user events. If the intent is for user-update-credential to also trigger for password resets, update supports(Event) (and potentially create(Event) if applicable) to include RESET_PASSWORD.
        if (originalEvent instanceof Event event) {
            if (EventType.RESET_PASSWORD.equals(event.getType())) {
                credentialType = "password";
            } else if (event.getDetails() != null) {
                credentialType = event.getDetails().get(Details.CREDENTIAL_TYPE);
            }
        } else if (originalEvent instanceof AdminEvent adminEvent) {

model/jpa/src/main/java/org/keycloak/models/workflow/events/UserUpdateProfileWorkflowEventProvider.java:81

  • When configParameter is blank, evaluate() returns true for admin user UPDATE events, even if no profile-related fields changed (e.g., toggling enabled, required actions, etc.). This makes user-update-profile potentially trigger on any admin user update. Consider requiring that at least one profile-related updated_* detail key is present in the underlying event details when the trigger has no parameter, so the trigger more closely matches its name/intent.
        if (configParameter == null || configParameter.isBlank()) {
            return true;
        }

model/jpa/src/main/java/org/keycloak/models/workflow/events/UserUpdateProfileWorkflowEventProvider.java:98

  • When configParameter is blank, evaluate() returns true for admin user UPDATE events, even if no profile-related fields changed (e.g., toggling enabled, required actions, etc.). This makes user-update-profile potentially trigger on any admin user update. Consider requiring that at least one profile-related updated_* detail key is present in the underlying event details when the trigger has no parameter, so the trigger more closely matches its name/intent.
        } else if (originalEvent instanceof AdminEvent adminEvent) {
            if (adminEvent.getDetails() == null) {
                return false;
            }

services/src/main/java/org/keycloak/services/resources/admin/UserResource.java:273

  • Building admin event detail keys from arbitrary attribute keys can collide with reserved/known keys (e.g. an attribute named first_name results in updated_first_name, potentially overwriting the explicit first-name detail). To avoid collisions and make consumers more robust, consider using a dedicated namespace/prefix for user attributes (e.g. updated_attr_<key>) or explicitly skipping/escaping keys that would conflict with existing detail keys.
            for (Map.Entry<String, String> attrEntry : changedAttributes.entrySet()) {
                adminEvent.detail("updated_" + attrEntry.getKey(), attrEntry.getValue());
            }

model/jpa/src/main/java/org/keycloak/models/workflow/events/UserUpdateConsentWorkflowEventProvider.java:42

  • Unlike the other admin-event providers added here, this supports(AdminEvent) does not constrain OperationType. Adding an operation-type filter (e.g. only operations that actually modify consents) would reduce the chance of triggering workflows on non-mutating consent-related admin events and keep provider behavior consistent across the new triggers.
    @Override
    public boolean supports(AdminEvent adminEvent) {
        if (!org.keycloak.events.admin.ResourceType.USER.equals(adminEvent.getResourceType())) {
            return false;
        }
        String path = adminEvent.getResourcePath();
        if (path == null) {
            return false;
        }
        return CONSENTS_PATH.matcher(path).matches();
    }

10BC8
Copilot AI review requested due to automatic review settings August 19, 2026 14:25
@ksushant881
ksushant881 force-pushed the add-support-for-user-events branch from d07f069 to b6c8021 Compare August 19, 2026 14:25
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 3 comments.

Suppressed comments (1)

model/jpa/src/main/resources/META-INF/services/org.keycloak.models.workflow.WorkflowEventProviderFactory:14

  • These five new public workflow event functions are not added to the exhaustive event-function table in docs/documentation/server_admin/topics/workflows/listening-workflow-events.adoc:47-56. Users therefore cannot discover the trigger names or their optional credential-type/profile-attribute parameters; update that table as part of this API addition.
org.keycloak.models.workflow.events.UserUpdateCredentialWorkflowEventFactory
org.keycloak.models.workflow.events.UserRemoveCredentialWorkflowEventFactory
org.keycloak.models.workflow.events.UserUpdateEmailWorkflowEventFactory
org.keycloak.models.workflow.events.UserUpdateProfileWorkflowEventFactory
org.keycloak.models.workflow.events.UserUpdateConsentWorkflowEventFactory

Comment on lines +208 to +210
if (!Objects.equals(newVal, oldVal)) {
changedAttributes.add(entry.getKey());
}
Comment on lines +198 to +200
boolean emailChanged = rep.getEmail() != null && !Objects.equals(rep.getEmail(), user.getEmail());
boolean firstNameChanged = rep.getFirstName() != null && !Objects.equals(rep.getFirstName(), user.getFirstName());
boolean lastNameChanged = rep.getLastName() != null && !Objects.equals(rep.getLastName(), user.getLastName());
Comment on lines +86 to +94
if ("email".equalsIgnoreCase(configParameter)) {
return event.getDetails().containsKey(Details.UPDATED_EMAIL);
} else if ("firstName".equalsIgnoreCase(configParameter) || "first_name".equalsIgnoreCase(configParameter)) {
return event.getDetails().containsKey("updated_first_name");
} else if ("lastName".equalsIgnoreCase(configParameter) || "last_name".equalsIgnoreCase(configParameter)) {
return event.getDetails().containsKey("updated_last_name");
} else {
return event.getDetails().containsKey("updated_" + configParameter);
}
@keycloak-github-bot keycloak-github-bot Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unreported flaky test detected, please review

@keycloak-github-bot
Copy link
Copy Markdown

Unreported flaky test detected

If the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR.

org.keycloak.testsuite.forms.MultiFactorAuthenticationTest#testAlternativeMechanismsInDifferentSubflows

Keycloak CI - Forms IT (chrome)

org.openqa.selenium.WebDriverException: 
unknown error: unhandled inspector error: {"code":-32000,"message":"Node with given id does not belong to the document"}
  (Session info: chrome=151.0.7922.137)
Build info: version: '4.46.0', revision: 'df5a634 df5a6341cbb5f8f06b836bd595752775627c80dc'
System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.17.0-1022-azure', java.version: '25.0.4'
...

Report flaky test

Closes keycloak#50453

Signed-off-by: ksushant881 <ksushant881@gmail.com>
Closes keycloak#50453

Signed-off-by: ksushant881 <ksushant881@gmail.com>
Closes keycloak#50453

Signed-off-by: ksushant881 <ksushant881@gmail.com>
Closes keycloak#50453

Signed-off-by: ksushant881 <ksushant881@gmail.com>
Use the user profile attribute change listener to add attribute change
details to admin user update events, so that only attributes that
actually changed are reported, with the same details as user events.
Remove admin event handling that no admin endpoint emits, drop admin
support from the consent trigger, document the new event functions and
check workflow activations after the session is committed in tests.

Closes keycloak#50453

Signed-off-by: ksushant881 <ksushant881@gmail.com>
Copilot AI balanced review requested due to automatic review settings October 24, 2026 03:03
@ksushant881
ksushant881 force-pushed the add-support-for-user-events branch from 383ee94 to 80afe24 Compare October 24, 2026 03:03
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Record the types of the credentials set when updating a user through the
admin API, so that user-update-credential workflows also trigger when a
password is set that way. Accept the previous value details in the
user-update-email and user-update-profile triggers, as only those are
set when an attribute is cleared or removed. Check activated and not
activated workflows against the same collected events in tests.

Closes keycloak#50453

Signed-off-by: ksushant881 <ksushant881@gmail.com>
Copilot AI balanced review requested due to automatic review settings October 24, 2026 06:49
@ksushant881
ksushant881 force-pushed the add-support-for-user-events branch from b4a9c03 to 6fa1058 Compare October 24, 2026 06:54
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Event matching and normalization defects can cause supported account changes to miss or incorrectly activate workflows.

4 open issues
2 previously missed issues

In code that hasn't changed since last review

Medium severity Trigger email updates from profile events with email-change details

model/​jpa/​src/​main/​java/​org/​keycloak/​models/​workflow/​events/​UserUpdateEmailWorkflowEventProvider.java:30

Email changes through AccountRestService.updateAccount emit only UPDATE_PROFILE with email-change details, so user-update-email never triggers for that supported account-update path. Also accept profile events containing PREVIOUS_EMAIL or UPDATED_EMAIL, while excluding unrelated profile updates.

Medium severity Match built-in attribute names exactly in profile filters

model/​jpa/​src/​main/​java/​org/​keycloak/​models/​workflow/​events/​UserUpdateProfileWorkflowEventProvider.java:80

Attribute names are case-sensitive, so a valid custom attribute such as Email is audited as updated_Email/previous_Email, but this case-insensitive comparison makes user-update-profile(Email) inspect the built-in email keys instead. Use exact matching for the built-in names, as the auditing listeners do, so these filters neither miss custom-attribute changes nor activate for unrelated built-in changes.

3 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 24, 2026 06:54
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Legacy OTP credential representations are converted from the totp and
hotp types to otp when they are set, so read the credential types for
the admin event after setting the credentials, while still skipping
the credentials that were already stored.

Closes keycloak#50453

Signed-off-by: ksushant881 <ksushant881@gmail.com>
Copilot AI balanced review requested due to automatic review settings October 24, 2026 07:37
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Email changes through the account endpoint bypass the new email-update trigger, leaving a security-relevant notification path uncovered.

5 open issues
2 previously missed issues

In code that hasn't changed since last review

Medium severity Handle profile events for account email changes

model/​jpa/​src/​main/​java/​org/​keycloak/​models/​workflow/​events/​UserUpdateEmailWorkflowEventProvider.java:30

Email changes through AccountRestService.updateAccount emit UPDATE_PROFILE with email-change details, not UPDATE_EMAIL, so user-update-email never activates for those changes. Also accept UPDATE_PROFILE events carrying previous/updated email details and add coverage through the account endpoint.

Low severity Align consent workflow with grant event type

docs/​documentation/​server_admin/​topics/​workflows/​listening-workflow-events.adoc:59

Initial consent grants emit GRANT_CONSENT (AccountRestService.upsert), but the new provider only accepts UPDATE_CONSENT, so granting a client access does not trigger this workflow. Limit the description to updates to existing consent rather than promising notifications for grants.

1 resolved since last review

Review effort: Balanced

Trigger user-update-email workflows on UPDATE_PROFILE events that carry
email change details, as the email is updated along with the profile
when the update email action is disabled. Only trigger
user-update-profile workflows on admin user updates that changed a
profile attribute, so that credential-only or enabled-only updates do
not activate them.

Closes keycloak#50453

Signed-off-by: ksushant881 <ksushant881@gmail.com>
Copilot AI balanced review requested due to automatic review settings October 24, 2026 12:33
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Credential workflows can activate for unapplied updates and miss legacy-password removals when filtering by type.

3 open issues
2 previously missed issues

In code that hasn't changed since last review

Medium severity Apply password fallback to admin removal event details

model/​jpa/​src/​main/​java/​org/​keycloak/​models/​workflow/​events/​UserRemoveCredentialWorkflowEventProvider.java:74

The admin removal endpoint explicitly treats a null credential type as a password, but AdminEventBuilder omits that null detail, so a successful legacy-password removal never matches user-remove-credential(password). Apply the same password fallback for these admin removal events before filtering.

Medium severity Avoid recording unsupported credentials as successful writes

services/​src/​main/​java/​org/​keycloak/​services/​resources/​admin/​UserResource.java:244

createCredentials() ignores the null result returned by createCredentialThroughProvider() for unsupported credential types, so these representations are not necessarily applied. Recording their requested types here can activate user-update-credential workflows even though no credential changed; record only successful writes or reject unsupported types.

2 resolved since last review

Review effort: Balanced

@ksushant881
Copy link
Copy Markdown
Contributor Author
D21F

copilot 😭😭😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Workflow] Add support for "Update [...]" user events

3 participants

0