@salesforce/ui-bundle-template-feature-react-authentication 11.69.0 → 11.69.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -69,6 +69,25 @@ function MyComponent() {
|
|
|
69
69
|
}
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
+
## Local preview limitations
|
|
73
|
+
|
|
74
|
+
Some authentication surfaces **only work on the deployed Experience site**, not in
|
|
75
|
+
local preview (`npm run dev` on `http://localhost`). This is expected: the local Vite
|
|
76
|
+
dev server proxies `sdk.fetch` to the org **outside the Experience site's
|
|
77
|
+
guest/community context**, so `Site.getBaseUrl()` is blank and the site session does
|
|
78
|
+
not exist.
|
|
79
|
+
|
|
80
|
+
| Surface | Local preview (`localhost`) | Deployed site |
|
|
81
|
+
| ------------------------------------ | ----------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
|
|
82
|
+
| **Social Login buttons** | Not shown — `/auth/social-login-config` returns `{"authProviders":[],"samlProviders":[]}`. | Renders configured providers |
|
|
83
|
+
| **MFA challenge** (`ForceTwoFactor`) | `Site.login()` cannot establish the site session, so login returns _"Your login attempt has failed…"_ | Works — platform renders and completes the MFA challenge |
|
|
84
|
+
| **`/chatter/users/me`** | May return `401` (no site session) | Works |
|
|
85
|
+
|
|
86
|
+
**How to test these:** open the **published site** login page, e.g.
|
|
87
|
+
`https://<your-domain>.site.com/<site-path>/login`. The empty responses and `401`s
|
|
88
|
+
above are expected locally and are **not** a misconfiguration — the deploy and
|
|
89
|
+
provider linking (`AuthConfigProviders`) are verified server-side.
|
|
90
|
+
|
|
72
91
|
## Notes
|
|
73
92
|
|
|
74
93
|
- The feature overrides `app.tsx` to wrap the app with `AuthProvider`
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [11.69.2](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.69.1...v11.69.2) (2026-08-25)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [11.69.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.69.0...v11.69.1) (2026-08-25)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* @W-23919045 note local-preview limitation on working with MFA & IDP locally ([#912](https://github.com/salesforce-experience-platform-emu/webapps/issues/912)) ([087e217](https://github.com/salesforce-experience-platform-emu/webapps/commit/087e2173625641c157b1a0630b96b13c950faab7))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
## [11.69.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.68.6...v11.69.0) (2026-08-25)
|
|
7
24
|
|
|
8
25
|
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"graphql:schema": "node scripts/get-graphql-schema.mjs"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@salesforce/platform-sdk": "^11.69.
|
|
22
|
-
"@salesforce/ui-bundle": "^11.69.
|
|
21
|
+
"@salesforce/platform-sdk": "^11.69.2",
|
|
22
|
+
"@salesforce/ui-bundle": "^11.69.2",
|
|
23
23
|
"@tailwindcss/vite": "^4.1.17",
|
|
24
24
|
"class-variance-authority": "^0.7.1",
|
|
25
25
|
"clsx": "^2.1.1",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@graphql-eslint/eslint-plugin": "^4.1.0",
|
|
47
47
|
"@graphql-tools/utils": "^11.0.0",
|
|
48
48
|
"@playwright/test": "^1.49.0",
|
|
49
|
-
"@salesforce/graphiti": "^11.69.
|
|
50
|
-
"@salesforce/vite-plugin-ui-bundle": "^11.69.
|
|
49
|
+
"@salesforce/graphiti": "^11.69.2",
|
|
50
|
+
"@salesforce/vite-plugin-ui-bundle": "^11.69.2",
|
|
51
51
|
"@testing-library/jest-dom": "^6.6.3",
|
|
52
52
|
"@testing-library/react": "^16.1.0",
|
|
53
53
|
"@testing-library/user-event": "^14.5.2",
|
package/dist/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/ui-bundle-template-base-sfdx-project",
|
|
3
|
-
"version": "11.69.
|
|
3
|
+
"version": "11.69.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@salesforce/ui-bundle-template-base-sfdx-project",
|
|
9
|
-
"version": "11.69.
|
|
9
|
+
"version": "11.69.2",
|
|
10
10
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"fast-xml-parser": "^5.9.3",
|
package/dist/package.json
CHANGED
|
@@ -60,6 +60,31 @@ Options:
|
|
|
60
60
|
return { targetOrg, uiBundleName };
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
/**
|
|
64
|
+
* Print a heads-up about auth surfaces that only work on the deployed Experience
|
|
65
|
+
* site. In local preview, `sdk.fetch` is proxied to the org outside the site's
|
|
66
|
+
* guest/community context, so social login and password/MFA login cannot be
|
|
67
|
+
* exercised on localhost. This mirrors the "Local preview limitations" sections
|
|
68
|
+
* in the feature-react-authentication / feature-react-mfa READMEs — surfaced here
|
|
69
|
+
* so it is seen even when the READMEs are not.
|
|
70
|
+
*/
|
|
71
|
+
function printLocalPreviewWarning() {
|
|
72
|
+
console.log(
|
|
73
|
+
[
|
|
74
|
+
'',
|
|
75
|
+
'⚠️ Local preview limitation — some auth surfaces only work on the DEPLOYED site',
|
|
76
|
+
' Local preview proxies sdk.fetch to the org outside the Experience site guest',
|
|
77
|
+
' context (Site.getBaseUrl() is blank, no site session), so on localhost:',
|
|
78
|
+
' • Social Login buttons do not render (/auth/social-login-config returns no providers)',
|
|
79
|
+
' • Password / MFA login fails with "Your login attempt has failed…" (Site.login() cannot',
|
|
80
|
+
' establish the site session)',
|
|
81
|
+
' This is expected, not a misconfiguration. Test social login and MFA on the published',
|
|
82
|
+
' site login page: https://<domain>.site.com/<site-path>/login',
|
|
83
|
+
'',
|
|
84
|
+
].join('\n'),
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
63
88
|
async function main() {
|
|
64
89
|
const parsed = parseArgs();
|
|
65
90
|
|
|
@@ -76,6 +101,8 @@ async function main() {
|
|
|
76
101
|
});
|
|
77
102
|
run('GraphQL codegen', 'npm', ['run', 'graphql:codegen'], { cwd: uiBundleDir });
|
|
78
103
|
|
|
104
|
+
printLocalPreviewWarning();
|
|
105
|
+
|
|
79
106
|
console.log('\n--- Launching dev server (Ctrl+C to stop) ---\n');
|
|
80
107
|
const devResult = run('Dev server', 'npm', ['run', 'dev'], { cwd: uiBundleDir, optional: true });
|
|
81
108
|
process.exit(devResult.status ?? 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/ui-bundle-template-feature-react-authentication",
|
|
3
|
-
"version": "11.69.
|
|
3
|
+
"version": "11.69.2",
|
|
4
4
|
"description": "Authentication feature for UI Bundles",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"clean": "rm -rf dist"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@salesforce/ui-bundle": "^11.69.
|
|
19
|
+
"@salesforce/ui-bundle": "^11.69.2",
|
|
20
20
|
"@tanstack/react-form": "^1.27.7",
|
|
21
21
|
"@types/react": "^19.2.7",
|
|
22
22
|
"@types/react-dom": "^19.2.3",
|