Skip to content

Latest commit

 

History

History
1511 lines (1012 loc) · 55.4 KB

File metadata and controls

1511 lines (1012 loc) · 55.4 KB

@asgardeo/react

0.25.13

Patch Changes

  • #569 9a156a9 Thanks @DonOmalVindula! - Render a read-only profile for users whose attributes are owned by an identity provider.

    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.

    • <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.
    • <UserDropdown /> forwards editable to the profile it opens from "Manage profile", so the modal follows the same rule as the page.
    • BaseUserProfile accepts a predicate for editable, so applications can decide per user without any lookup, and a readOnlyNote to explain why editing is unavailable.
    • 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.
    • 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.

    While auto is resolving, the profile shows a loading state rather than edit controls it may have to take away; BaseUserProfile now renders that state whenever isLoading is set, in both inline and popup modes. In popup mode the lookup is deferred until the profile is actually opened.

  • Updated dependencies [9a156a9]:

    • @asgardeo/i18n@0.4.10
    • @asgardeo/browser@0.7.16

0.25.12

Patch Changes

  • #567 d559499 Thanks @DonOmalVindula! - Show a success message and a sign-in button when a registration completes without signing the user in.

    • BaseSignUp accepts a signInUrl prop. When the flow completes and the prop is set, the card keeps showing the "account created" message and renders a Sign In button that takes the user to that URL.
    • The Next.js <SignUp /> passes the configured signInUrl automatically, and the provider no longer navigates to afterSignUpUrl when no session was created (for example after a social sign-up, or a multi-step registration). Previously the user was sent to a protected page and bounced straight to the sign-in form without ever seeing that the account had been created. A per-component afterSignUpUrl prop is still honoured.
    • When the host does sign the user in (the Next.js auto sign-in), the message reads "Your account has been created. Signing you in…" (new i18n key signup.success.signing.in) instead of leaving the user wondering what happens next.
  • Updated dependencies [d559499]:

    • @asgardeo/i18n@0.4.9
    • @asgardeo/browser@0.7.15

0.25.11

Patch Changes

  • #548 3177d83 Thanks @DonOmalVindula! - Let applications relabel the embedded sign-in fields through i18n.

    • The username and password fields of the embedded sign-in form now take their label and placeholder from the i18n bundle (elements.fields.<field>.label / elements.fields.<field>.placeholder) when a translation is provided, falling back to the text returned by the identity server. This lets applications whose users sign in with an email address relabel the identifier field without changing the login flow.
    • preferences.i18n.bundles now accepts partial bundles (I18nBundleOverride): only the keys being changed need to be supplied, and the bundle metadata is optional. This was already the runtime behaviour but the types required a complete bundle.
    • The Next.js <SignIn /> component now accepts the preferences prop, so texts can be overridden per component as with <SignUp /> and the React SDK.
  • Updated dependencies []:

    • @asgardeo/browser@0.7.14

0.25.10

Patch Changes

  • #545 ce37e51 Thanks @DonOmalVindula! - - Next.js: cross-origin redirects (the identity server's hosted sign-in, sign-up and logout endpoints) are now performed with a full browser navigation instead of the Next.js app router. Handing those URLs to the router made it request them as a React Server Components payload first, which the browser blocked with a CORS error before the router fell back to a normal navigation, leaving "Failed to fetch RSC payload" errors in the console on every sign-out.
    • React: dialogs (for example the popup mode of <UserProfile /> opened from the user dropdown) now move focus onto the dialog when they open. Previously focus stayed on the trigger, which the focus manager had just hidden from assistive technology with aria-hidden, and browsers reported "Blocked aria-hidden on an element because its descendant retained focus".
    • Next.js: the OAuth callback handler no longer runs inside the popup opened by the embedded sign-in/sign-up flows, which logged a spurious "Authentication failed" on every social login even though the flow completed.
    • Next.js: the server-side log level can be raised with ASGARDEO_LOG_LEVEL (debug, info, warn, error; default error), for example to see why a profile fell back to the ID token claims.

0.25.9

Patch Changes

  • #543 38e395b Thanks @DonOmalVindula! - Fixes for the embedded <SignIn /> and <SignUp /> components:

    • Social login buttons in the sign-in, sign-up and recovery flows no longer receive internal form-state props (formValues, formErrors, touchedFields, isFormValid, onInputChange, inputClassName), which React reported as unknown attributes on the <button> element.
    • When the identity server rejects the embedded sign-in because the redirect URI (afterSignInUrl) is not registered for the application, the form shows a translated, actionable message naming the URL to register (errors.signin.redirect.uri.mismatch) instead of the raw invalid_callback - callback.not.match text. The Next.js README documents the redirect URL requirements.
    • When the automatic sign-in after an embedded registration cannot be performed, the reason is reported in the browser console as well as the server log.
    • <SignUp /> renders RICH_TEXT flow components (for example the terms of service text), which were previously dropped, leaving the submit button jammed against the last field.
    • The Next.js <SignUp /> forwards all remaining props to the underlying form (showTitle, showSubtitle, showLogo, onComplete, onFlowChange, class names, ...), so for instance showTitle={false} now works when a registration flow renders its own heading.
    • After a server-side validation error (for example a rejected password), <SignUp /> now keeps the values the user entered and the submit button stays enabled, so the user can correct the field and resubmit. Previously the form's validation errors were recorded under keys no input could clear, which left the button disabled permanently. Form validation also runs against the value being typed instead of the previous one.
  • Updated dependencies [38e395b]:

    • @asgardeo/i18n@0.4.8
    • @asgardeo/browser@0.7.13

0.23.7

Patch Changes

  • Updated dependencies [94fe825]:
    • @asgardeo/browser@0.7.3

0.23.6

Patch Changes

0.23.5

Patch Changes

0.23.4

Patch Changes

  • #488 8e164c7 Thanks @DonOmalVindula! - Fix social signup popup callback handling

    When social signup (Google/GitHub) opens a popup for federated authentication, the Callback component now detects the popup context and sends OAuth parameters back to the parent window via postMessage. Also prevents a race condition where both the postMessage handler and the popup URL monitor could double-process the callback.

0.23.3

Patch Changes

  • Updated dependencies [519fa74]:
    • @asgardeo/browser@0.7.2

0.23.2

Patch Changes

  • Updated dependencies []:
    • @asgardeo/browser@0.7.1

0.23.1

Patch Changes

0.23.0

Minor Changes

  • #471 03c4306 Thanks @brionmario! - Implement component rendering extensions and context for customizable SDK behavior

Patch Changes

  • Updated dependencies [03c4306]:
    • @asgardeo/browser@0.7.0

0.22.5

Patch Changes

  • #466 b65b5cd Thanks @ThaminduDilshan! - Add support for optional per step challenge token

  • Updated dependencies []:

    • @asgardeo/browser@0.6.7

0.22.4

Patch Changes

  • #464 264719c Thanks @brionmario! - Refactor FlowMetaProvider to defer metadata fetch until Asgardeo initialization is complete

0.22.3

Patch Changes

  • #462 81830c1 Thanks @brionmario! - Refactor FlowMetaProvider to prevent duplicate fetches during re-mounts and rapid dependency changes

0.22.2

Patch Changes

0.22.1

Patch Changes

  • Updated dependencies []:
    • @asgardeo/browser@0.6.6

0.22.0

Minor Changes

Patch Changes

  • Updated dependencies []:
    • @asgardeo/browser@0.6.5

0.21.4

Patch Changes

  • #450 4bad8c2 Thanks @DonOmalVindula! - Add rendering support for PHONE_INPUT and OTP_INPUT component types in the embedded flow

  • Updated dependencies []:

    • @asgardeo/browser@0.6.4

0.21.3

Patch Changes

  • #447 7e8151d Thanks @ThaminduDilshan! - Add flow native render support for invite flows removing the custom workarounds

  • Updated dependencies [7e8151d]:

    • @asgardeo/i18n@0.4.5
    • @asgardeo/browser@0.6.3

0.21.2

Patch Changes

0.21.1

Patch Changes

0.21.0

Minor Changes

Patch Changes

  • Updated dependencies [696fff7]:
    • @asgardeo/browser@0.6.0

0.20.1

Patch Changes

  • Updated dependencies []:
    • @asgardeo/browser@0.5.12

0.20.0

Minor Changes

Patch Changes

  • Updated dependencies []:
    • @asgardeo/browser@0.5.11

0.19.0

Minor Changes

Patch Changes

  • Updated dependencies []:
    • @asgardeo/browser@0.5.10

0.18.1

Patch Changes

  • Updated dependencies [29463c4]:
    • @asgardeo/browser@0.5.9

0.18.0

Minor Changes

Patch Changes

  • Updated dependencies []:
    • @asgardeo/browser@0.5.8

0.17.0

Minor Changes

  • #416 db123a8 Thanks @dileepapeiris! - Add user preferences to control automatic API calls for user profile and organizations.

Patch Changes

  • Updated dependencies []:
    • @asgardeo/browser@0.5.7

0.16.2

Patch Changes

  • #422 f1e0225 Thanks @brionmario! - Refactor FlowMetaProvider to include platform check for metadata fetching

0.16.1

Patch Changes

0.16.0

Minor Changes

Patch Changes

  • #418 f380a3a Thanks @brionmario! - Refactor getFlowMetaV2 parameters to make 'id' and 'type' optional for i18n-only metadata retrieval

  • Updated dependencies []:

    • @asgardeo/browser@0.5.6

0.15.4

Patch Changes

  • #413 0dca4b4 Thanks @brionmario! - Fix refresh issues in Asgardeo V2

  • Updated dependencies []:

    • @asgardeo/browser@0.5.5

0.15.3

Patch Changes

  • #409 0adb9bc Thanks @brionmario! - Fix issues in Language Dropdown & expose emoji resolving utils

  • Updated dependencies [0adb9bc]:

    • @asgardeo/browser@0.5.4

0.15.2

Patch Changes

0.15.1

Patch Changes

  • #403 4001204 Thanks @brionmario! - Update dependency versions for @types/react and @types/react-dom in pnpm-workspace.yaml

0.15.0

Minor Changes

Patch Changes

  • Updated dependencies []:
    • @asgardeo/browser@0.5.3

0.14.4

Patch Changes

  • #397 fa14d22 Thanks @RandithaK! - Support sending invite links via email, with direct link sharing as a fallback.

0.14.3

Patch Changes

0.14.2

Patch Changes

  • #392 42dcd4a Thanks @ThaminduDilshan! - Add new consent prompt and timer components to render consent UI pages in V2 Platform

  • Updated dependencies [42dcd4a]:

    • @asgardeo/i18n@0.4.4
    • @asgardeo/browser@0.5.2

0.14.1

Patch Changes

  • #390 3707df8 Thanks @brionmario! - Improve <LanguageSwitcher /> & other components

  • Updated dependencies []:

    • @asgardeo/browser@0.5.1

0.14.0

Minor Changes

Patch Changes

  • Updated dependencies [48bfa67]:
    • @asgardeo/browser@0.5.0

0.13.4

Patch Changes

  • Updated dependencies [2771a78]:
    • @asgardeo/browser@0.4.3

0.13.3

Patch Changes

  • #381 dcf6ddf Thanks @brionmario! - Introduce <LanguageSwitcher /> & improve i18n support

  • Updated dependencies [dcf6ddf]:

    • @asgardeo/i18n@0.4.3
    • @asgardeo/browser@0.4.2

0.13.2

Patch Changes

0.13.1

Patch Changes

  • Updated dependencies [303663e]:
    • @asgardeo/browser@0.4.0

0.13.0

Minor Changes

Patch Changes

0.12.0

Minor Changes

Patch Changes

  • #327 8705827 Thanks @kavindadimuthu! - Fix login flow isolation when using multiple AuthProvider instances

  • Updated dependencies [8705827]:

    • @asgardeo/browser@0.2.10

0.11.3

Patch Changes

0.11.2

Patch Changes

  • Updated dependencies [0c264d8]:
    • @asgardeo/browser@0.2.8

0.11.1

Patch Changes

0.11.0

Minor Changes

Patch Changes

  • Updated dependencies []:
    • @asgardeo/browser@0.2.6

0.10.0

Minor Changes

  • #325 45cbc37 Thanks @kavindadimuthu! - Add support to pass instanceId externally through AsgardeoProvider props to allow multi-organization setups

Patch Changes

  • Updated dependencies []:
    • @asgardeo/browser@0.2.5

0.9.3

Patch Changes

  • Updated dependencies [ff86e3b]:
    • @asgardeo/i18n@0.4.1
    • @asgardeo/browser@0.2.4

0.9.2

Patch Changes

0.9.1

Patch Changes

0.9.0

Minor Changes

Patch Changes

  • Updated dependencies [f0b6f11]:
    • @asgardeo/i18n@0.4.0
    • @asgardeo/browser@0.2.2

0.8.0

Minor Changes

Patch Changes

  • Updated dependencies []:
    • @asgardeo/browser@0.2.1

0.7.0

Minor Changes

Patch Changes

  • Updated dependencies [0d62260]:
    • @asgardeo/browser@0.2.0

0.6.31

Patch Changes

0.6.30

Patch Changes

  • #316 cc90868 Thanks @brionmario! - fix: remove unnecessary loading state management from signInSilently method

0.6.29

Patch Changes

  • #314 2b8bf7b Thanks @brionmario! - Remove unnecessary loading state management from getDecodedIdToken and getAccessToken methods

0.6.28

Patch Changes

0.6.27

Patch Changes

0.6.26

Patch Changes

0.6.25

Patch Changes

  • #303 d89a096 Thanks @brionmario! - Fix component type issues

  • Updated dependencies []:

    • @asgardeo/browser@0.1.40

0.6.24

Patch Changes

  • #300 02f3343 Thanks @brionmario! - Fix social button rendering issue in v2

  • Updated dependencies [02f3343]:

    • @asgardeo/i18n@0.3.9
    • @asgardeo/browser@0.1.39

0.6.23

Patch Changes

0.6.22

Patch Changes

  • Updated dependencies []:
    • @asgardeo/browser@0.1.38

0.6.21

Patch Changes

0.6.20

Patch Changes

  • #292 824db16 Thanks @brionmario! - Fix CI failure due to re-exports

  • Updated dependencies []:

    • @asgardeo/browser@0.1.37

0.6.19

Patch Changes

  • Updated dependencies []:
    • @asgardeo/browser@0.1.36

0.6.18

Patch Changes

0.6.17

Patch Changes

0.6.16

Patch Changes

  • #278 dc849e8 Thanks @thiva-k! - Rename sessionDataKey to authId for V2

  • Updated dependencies []:

    • @asgardeo/browser@0.1.33

0.6.15

Patch Changes

0.6.14

Patch Changes

  • #274 15069ee Thanks @brionmario! - Add ability to call external endpoints without explicitly allowing them in non webWorker storage modes

  • Updated dependencies [15069ee]:

    • @asgardeo/browser@0.1.31

0.6.13

Patch Changes

  • #271 a035bed Thanks @brionmario! - Throw JWT verification errors

  • Updated dependencies []:

    • @asgardeo/browser@0.1.30

0.6.12

Patch Changes

  • Updated dependencies [2b763d6]:
    • @asgardeo/i18n@0.3.5
    • @asgardeo/browser@0.1.29

0.6.11

Patch Changes

0.6.10

Patch Changes

0.6.9

Patch Changes

  • #261 f2acb21 Thanks @DonOmalVindula! - Demote dependencies to versions before 1/11/2025

  • Updated dependencies [f2acb21]:

    • @asgardeo/browser@0.1.28
    • @asgardeo/i18n@0.3.4

0.6.8

Patch Changes

0.6.7

Patch Changes

0.6.6

Patch Changes

0.6.5

Patch Changes

0.6.4

Patch Changes

0.6.3

Patch Changes

  • #243 7d932db Thanks @brionmario! - improve SignIn & SignUp styling

  • Updated dependencies [7d932db]:

    • @asgardeo/i18n@0.3.3
    • @asgardeo/browser@0.1.27

0.6.2

Patch Changes

0.6.1

Patch Changes

  • #237 3063eb8 Thanks @brionmario! - - Fix SignUp component issues with AsgardeoV2
    • Fix Password field display issue in SignIn component
  • Updated dependencies [3063eb8]:
    • @asgardeo/i18n@0.3.2
    • @asgardeo/browser@0.1.26

0.6.0

Minor Changes

Patch Changes

  • Updated dependencies []:
    • @asgardeo/browser@0.1.25

0.5.33

Patch Changes

0.5.32

Patch Changes

  • #226 4fd4daf Thanks @brionmario! - Update types and improve type safety across components and models

  • Updated dependencies []:

    • @asgardeo/browser@0.1.24

0.5.31

Patch Changes

0.5.30

Patch Changes

  • #217 218f930 Thanks @brionmario! - Fix SignInButton issue with AsgardeoV2

  • Updated dependencies []:

    • @asgardeo/browser@0.1.23

0.5.29

Patch Changes

0.5.28

Patch Changes

0.5.27

Patch Changes

0.5.26

Patch Changes

0.5.25

Patch Changes

  • #181 0c34416 Thanks @brionmario! - Expose reInitialize from @asgardeo/react & @asgardeo/nextjs

  • Updated dependencies []:

    • @asgardeo/browser@0.1.18

0.5.24

Patch Changes

  • #149 e1c0d48 Thanks @brionmario! - Add support for redirection based SignUpButton usage

  • Updated dependencies [e1c0d48]:

    • @asgardeo/browser@0.1.17

0.5.23

Patch Changes

0.5.22

Patch Changes

0.5.21

Patch Changes

  • #135 a9f7279 Thanks @brionmario! - Expose getAccessToken & exchangeToken from useAsgardeo

  • Updated dependencies []:

    • @asgardeo/browser@0.1.14

0.5.20

Patch Changes

  • #133 e87f363 Thanks @brionmario! - fix: remove color and variant props from BaseSignOutButton and BaseSignUpButton

0.5.19

Patch Changes

0.5.18

Patch Changes

  • #129 53ab5ad Thanks @brionmario! - Add HTTP utility and export in browser and react packages

  • Updated dependencies [53ab5ad]:

    • @asgardeo/browser@0.1.13

0.5.17

Patch Changes

0.5.16

Patch Changes

0.5.15

Patch Changes

0.5.14

Patch Changes

  • #113 6ba5b4b Thanks @brionmario! - Add component-specific overrides.

  • Updated dependencies []:

    • @asgardeo/browser@0.1.10

0.5.13

Patch Changes

  • #96 a1a6afe Thanks @brionmario! - - Fix import path for useAsgardeo in SignedOut component

    • Rename AsgardeoLoading -> Loading
  • #96 a175ecf Thanks @brionmario! - Fix getAccessToken imperative usage

  • Updated dependencies []:

    • @asgardeo/browser@0.1.9

0.5.12

Patch Changes

  • #106 7e8ea1c Thanks @brionmario! - Fix getAccessToken imperative usage

  • Updated dependencies []:

    • @asgardeo/browser@0.1.8

0.5.11

Patch Changes

  • Updated dependencies []:
    • @asgardeo/browser@0.1.7

0.5.10

Patch Changes

0.5.9

Patch Changes

  • #98 b50ea2b Thanks @brionmario! - - Fix organizationHandle resolution issues with the on-prem WSO2 Identity Server
    • Expose fetch method in AsgardeoContext to allow custom HTTP requests
  • Updated dependencies []:
    • @asgardeo/browser@0.1.5

0.5.8

Patch Changes

  • #94 cb918a3 Thanks @brionmario! - This update addresses issues in the @asgardeo/react-router package and exposes the signInSilently method from the @asgardeo/react package. The changes ensure that the ProtectedRoute component works correctly with the new sign-in functionality.

  • Updated dependencies [cb918a3]:

    • @asgardeo/browser@0.1.4

0.5.7

Patch Changes

0.5.6

Patch Changes

0.5.5

Patch Changes

0.5.4

Patch Changes

0.5.3

Patch Changes

0.5.2

Patch Changes

0.5.1

Patch Changes

0.5.0

Minor Changes

0.5.0

Minor Changes

0.4.0

Minor Changes

Patch Changes

  • Updated dependencies [efe951f]:
    • @asgardeo/browser@0.1.0

0.3.0

Minor Changes

Patch Changes

  • Updated dependencies [a806ea8]:
    • @asgardeo/browser@0.0.1