You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e5f7197
Browse filesBrowse the repository at this point in the historyBrowse files
fix(react, nextjs): no edit-control flash, and apply the rule to the profile modal
- Treat an unresolved editable="auto" lookup as read-only, so a managed account
never shows edit controls for a moment before they disappear.
- <UserDropdown /> forwards editable to the profile it opens from "Manage
profile", which previously always rendered as editable.
- In popup mode the lookup waits until the profile is opened, so mounting a
dropdown costs no request.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .changeset/readonly-federated-profile.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,9 @@ Render a read-only profile for users whose attributes are owned by an identity p
10
10
Asgardeo rejects attribute updates for accounts provisioned from a social or enterprise connection, so the profile used to offer edit controls that always failed with a raw SCIM error.
11
11
12
12
-`<UserProfile />` accepts `editable="auto"` in React and Next.js. On Asgardeo it looks up the signed-in user's federated associations and, when the account is linked to a connection, renders the profile read-only with a short note naming the provider. On WSO2 Identity Server, where the same updates succeed, the profile stays editable.
13
+
-`<UserDropdown />` forwards `editable` to the profile it opens from "Manage profile", so the modal follows the same rule as the page.
13
14
-`BaseUserProfile` accepts a predicate for `editable`, so applications can decide per user without any lookup, and a `readOnlyNote` to explain why editing is unavailable.
14
15
- A rejected update is now reported in plain words instead of the raw SCIM error, and switches the profile to read-only for the rest of the session. The Next.js `<UserProfile />` previously ignored update failures entirely.
15
16
- New API `getMeFederatedAssociations` in `@asgardeo/javascript` and `@asgardeo/react`, plus the `signup`-style texts `user.profile.readonly.federated` and `user.profile.update.not.allowed.error` in all i18n bundles.
17
+
18
+
While `auto` is resolving the profile stays read-only, so a managed account never briefly shows edit controls; in popup mode the lookup is deferred until the profile is actually opened.
0 commit comments