@salesforce/ui-bundle-template-feature-vue-authentication 0.0.0-stage → 13.2.0
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/LICENSE.txt +82 -0
- package/README.md +106 -2
- package/dist/.forceignore +15 -0
- package/dist/.husky/pre-commit +4 -0
- package/dist/.prettierignore +11 -0
- package/dist/.prettierrc +17 -0
- package/dist/CHANGELOG.md +5431 -0
- package/dist/README.md +83 -0
- package/dist/config/project-scratch-def.json +13 -0
- package/dist/eslint.config.js +7 -0
- package/dist/force-app/main/default/classes/UIBundleAuthUtils.cls +68 -0
- package/dist/force-app/main/default/classes/UIBundleAuthUtils.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleAuthUtils_Test.cls +141 -0
- package/dist/force-app/main/default/classes/UIBundleAuthUtils_Test.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleChangePassword.cls +77 -0
- package/dist/force-app/main/default/classes/UIBundleChangePassword.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleForgotPassword.cls +71 -0
- package/dist/force-app/main/default/classes/UIBundleForgotPassword.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleLogin.cls +105 -0
- package/dist/force-app/main/default/classes/UIBundleLogin.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleRegistration.cls +162 -0
- package/dist/force-app/main/default/classes/UIBundleRegistration.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleSocialLoginConfig.cls +145 -0
- package/dist/force-app/main/default/classes/UIBundleSocialLoginConfig.cls-meta.xml +5 -0
- package/dist/force-app/main/default/classes/UIBundleSocialLoginConfig_Test.cls +181 -0
- package/dist/force-app/main/default/classes/UIBundleSocialLoginConfig_Test.cls-meta.xml +5 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/.forceignore +15 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/.graphqlrc.yml +2 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/.prettierignore +9 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/.prettierrc +11 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/README.md +43 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/codegen.yml +95 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/components.json +19 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/e2e/app.spec.ts +17 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/eslint.config.js +124 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/feature-vue-authentication.uibundle-meta.xml +7 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/index.html +12 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/package.json +74 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/playwright.config.ts +24 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/scripts/get-graphql-schema.mjs +71 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/scripts/rewrite-e2e-assets.mjs +23 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/App.vue +5 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/api/graphqlClient.ts +44 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/appLayout.vue +80 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/alerts/status-alert.vue +59 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/layouts/card-layout.vue +30 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/alert/Alert.vue +21 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/alert/AlertAction.vue +17 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/alert/AlertDescription.vue +22 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/alert/AlertTitle.vue +22 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/alert/index.ts +25 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/avatar/Avatar.vue +23 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/avatar/AvatarFallback.vue +31 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/avatar/AvatarImage.vue +16 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/avatar/index.ts +3 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/button/Button.vue +33 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/button/index.ts +43 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/card/Card.vue +29 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/card/CardAction.vue +22 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/card/CardContent.vue +17 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/card/CardDescription.vue +17 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/card/CardFooter.vue +22 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/card/CardHeader.vue +22 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/card/CardTitle.vue +22 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/card/index.ts +7 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/checkbox/Checkbox.vue +43 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/checkbox/index.ts +1 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/collapsible/Collapsible.vue +19 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/collapsible/CollapsibleContent.vue +12 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/collapsible/CollapsibleTrigger.vue +12 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/collapsible/index.ts +3 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dialog/Dialog.vue +15 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dialog/DialogClose.vue +12 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dialog/DialogContent.vue +59 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dialog/DialogDescription.vue +31 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dialog/DialogFooter.vue +33 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dialog/DialogHeader.vue +17 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dialog/DialogOverlay.vue +31 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dialog/DialogPortal.vue +12 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dialog/DialogTitle.vue +26 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dialog/DialogTrigger.vue +12 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dialog/index.ts +10 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dropdown-menu/DropdownMenu.vue +19 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +51 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dropdown-menu/DropdownMenuContent.vue +47 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dropdown-menu/DropdownMenuGroup.vue +12 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dropdown-menu/DropdownMenuItem.vue +44 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +30 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dropdown-menu/DropdownMenuPortal.vue +12 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +21 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +52 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +26 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue +19 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dropdown-menu/DropdownMenuSub.vue +19 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +37 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +38 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue +17 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/dropdown-menu/index.ts +15 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/field/Field.vue +27 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/field/FieldContent.vue +22 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/field/FieldDescription.vue +24 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/field/FieldError.vue +48 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/field/FieldGroup.vue +22 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/field/FieldLabel.vue +24 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/field/FieldLegend.vue +29 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/field/FieldSeparator.vue +31 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/field/FieldSet.vue +22 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/field/FieldTitle.vue +22 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/field/index.ts +33 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/index.ts +115 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/input/Input.vue +30 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/input/index.ts +1 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/label/Label.vue +29 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/label/index.ts +1 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/pagination/Pagination.vue +17 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/pagination/PaginationContent.vue +15 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/pagination/PaginationEllipsis.vue +23 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/pagination/PaginationItem.vue +7 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/pagination/PaginationLink.vue +31 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/pagination/PaginationNext.vue +29 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/pagination/PaginationPrevious.vue +29 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/pagination/index.ts +7 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/popover/Popover.vue +15 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/popover/PopoverAnchor.vue +12 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/popover/PopoverContent.vue +44 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/popover/PopoverDescription.vue +17 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/popover/PopoverHeader.vue +17 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/popover/PopoverTitle.vue +14 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/popover/PopoverTrigger.vue +12 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/popover/index.ts +7 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/select/Select.vue +15 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/select/SelectContent.vue +65 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/select/SelectGroup.vue +26 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/select/SelectItem.vue +41 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/select/SelectLabel.vue +26 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/select/SelectScrollDownButton.vue +32 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/select/SelectScrollUpButton.vue +32 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/select/SelectSeparator.vue +24 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/select/SelectTrigger.vue +45 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/select/SelectValue.vue +12 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/select/index.ts +10 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/separator/Separator.vue +33 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/separator/index.ts +1 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/skeleton/Skeleton.vue +15 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/skeleton/index.ts +1 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/sonner/Sonner.vue +29 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/sonner/index.ts +3 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/spinner/Spinner.vue +17 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/components/ui/spinner/index.ts +1 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/composables/useAsyncData.ts +69 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/api/userProfileApi.ts +107 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/authHelpers.ts +78 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/authenticationConfig.ts +66 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/components/SocialLogin.vue +150 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/composables/useCountdownTimer.ts +246 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/composables/useRetryWithBackoff.ts +112 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/composables/useSessionTimeout.ts +244 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/context/authContext.ts +115 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/footers/FooterLink.vue +47 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/forms/AuthForm.vue +141 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/forms/SubmitButton.vue +57 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/hooks/EmailField.vue +46 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/hooks/PasswordField.vue +48 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/hooks/TextField.vue +106 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/hooks/form.ts +90 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/hooks/formContexts.ts +61 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/layout/CenteredPageLayout.vue +76 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/layouts/AuthAppLayout.vue +24 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/layouts/PrivateRouteLayout.vue +50 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/menu/AuthMenu.vue +143 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/pages/ChangePassword.vue +122 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/pages/ForgotPassword.vue +90 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/pages/Login.vue +106 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/pages/Profile.vue +180 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/pages/Register.vue +135 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/pages/ResetPassword.vue +114 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/sessionTimeout/SessionExpiredAlert.vue +50 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/sessionTimeout/SessionTimeoutValidator.vue +136 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/sessionTimeout/SessionWarningModal.vue +151 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/sessionTimeout/sessionTimeService.ts +142 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/sessionTimeout/sessionTimeoutConfig.ts +82 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/utils/helpers.ts +90 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/features/authentication/utils/queryToSearchParams.ts +33 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/lib/utils.ts +6 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/main.ts +6 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/pages/Home.vue +10 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/pages/NotFound.vue +18 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/router-utils.ts +32 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/router.ts +90 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/styles/global.css +134 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/src/test/setup.ts +1 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/tsconfig.json +45 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/tsconfig.node.json +13 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/tsconfig.tsbuildinfo +1 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/ui-bundle.json +7 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/vite-env.d.ts +14 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/vite.config.ts +106 -0
- package/dist/force-app/main/default/uiBundles/feature-vue-authentication/vitest-env.d.ts +2 -0
- package/dist/jest.config.js +6 -0
- package/dist/package-lock.json +12554 -0
- package/dist/package.json +46 -0
- package/dist/scripts/apex/hello.apex +10 -0
- package/dist/scripts/gitignore-templates.json +4 -0
- package/dist/scripts/graphql-search.sh +191 -0
- package/dist/scripts/network-senders.mjs +84 -0
- package/dist/scripts/org-setup-config-schema.mjs +132 -0
- package/dist/scripts/org-setup-dev.mjs +114 -0
- package/dist/scripts/org-setup-url.mjs +108 -0
- package/dist/scripts/org-setup-utils.mjs +569 -0
- package/dist/scripts/org-setup-xml.mjs +283 -0
- package/dist/scripts/org-setup.config.json +5 -0
- package/dist/scripts/org-setup.mjs +2545 -0
- package/dist/scripts/sf-project-setup.mjs +103 -0
- package/dist/scripts/soql/account.soql +6 -0
- package/dist/scripts/validate-org-setup-config.mjs +38 -0
- package/dist/sfdx-project.json +12 -0
- package/package.json +44 -4
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { Ref, WatchSource } from 'vue';
|
|
2
|
+
import { ref, shallowRef, watch } from 'vue';
|
|
3
|
+
|
|
4
|
+
/** Reactive async-data snapshot: current data, loading, and error. */
|
|
5
|
+
export interface AsyncData<T> {
|
|
6
|
+
/** Latest successful result. Kept visible during a refetch. */
|
|
7
|
+
data: Ref<T | null>;
|
|
8
|
+
/** True while a fetch for the current args is in flight. */
|
|
9
|
+
loading: Ref<boolean>;
|
|
10
|
+
/** Error message from the most recent failed fetch, else null. */
|
|
11
|
+
error: Ref<string | null>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Runs an async `fetcher` immediately and again whenever `source` changes,
|
|
16
|
+
* exposing the result as reactive refs. Stale responses (the source changed
|
|
17
|
+
* during a fetch, or the component unmounted) are dropped via a generation
|
|
18
|
+
* counter, so only the latest in-flight request can write state.
|
|
19
|
+
*
|
|
20
|
+
* The Vue analogue of the React `useAsyncData` hook and the Angular
|
|
21
|
+
* `createAsyncData` helper: the state shape (`data` / `loading` / `error`) is
|
|
22
|
+
* identical so pages port across frameworks unchanged.
|
|
23
|
+
*
|
|
24
|
+
* @typeParam TArgs - The reactive arguments passed to the fetcher.
|
|
25
|
+
* @typeParam T - The fetched result type.
|
|
26
|
+
* @param source - Reactive source (ref, getter, or array of them) whose value
|
|
27
|
+
* is forwarded to `fetcher`. Re-runs on change.
|
|
28
|
+
* @param fetcher - Async function producing the data for the current args.
|
|
29
|
+
* @returns Reactive `{ data, loading, error }` refs.
|
|
30
|
+
*/
|
|
31
|
+
export function useAsyncData<TArgs, T>(
|
|
32
|
+
source: WatchSource<TArgs>,
|
|
33
|
+
fetcher: (args: TArgs) => Promise<T>
|
|
34
|
+
): AsyncData<T> {
|
|
35
|
+
const data = shallowRef<T | null>(null);
|
|
36
|
+
const loading = ref<boolean>(true);
|
|
37
|
+
const error = ref<string | null>(null);
|
|
38
|
+
|
|
39
|
+
let generation = 0;
|
|
40
|
+
|
|
41
|
+
const run = (args: TArgs): void => {
|
|
42
|
+
const current = ++generation;
|
|
43
|
+
loading.value = true;
|
|
44
|
+
error.value = null;
|
|
45
|
+
|
|
46
|
+
fetcher(args)
|
|
47
|
+
.then(result => {
|
|
48
|
+
if (current === generation) {
|
|
49
|
+
data.value = result;
|
|
50
|
+
}
|
|
51
|
+
})
|
|
52
|
+
.catch((err: unknown) => {
|
|
53
|
+
console.error(err);
|
|
54
|
+
if (current === generation) {
|
|
55
|
+
error.value =
|
|
56
|
+
err instanceof Error ? err.message : 'An error occurred';
|
|
57
|
+
}
|
|
58
|
+
})
|
|
59
|
+
.finally(() => {
|
|
60
|
+
if (current === generation) {
|
|
61
|
+
loading.value = false;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
watch(source, args => run(args), { immediate: true, deep: true });
|
|
67
|
+
|
|
68
|
+
return { data, loading, error };
|
|
69
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Extensible user profile fetching and updating via UI API GraphQL.
|
|
8
|
+
*/
|
|
9
|
+
import { createDataSDK } from "@salesforce/platform-sdk";
|
|
10
|
+
import { flattenGraphQLRecord } from "../utils/helpers";
|
|
11
|
+
|
|
12
|
+
const USER_PROFILE_FIELDS_FULL = `
|
|
13
|
+
Id
|
|
14
|
+
FirstName @optional { value }
|
|
15
|
+
LastName @optional { value }
|
|
16
|
+
Email @optional { value }
|
|
17
|
+
Phone @optional { value }
|
|
18
|
+
Street @optional { value }
|
|
19
|
+
City @optional { value }
|
|
20
|
+
State @optional { value }
|
|
21
|
+
PostalCode @optional { value }
|
|
22
|
+
Country @optional { value }`;
|
|
23
|
+
|
|
24
|
+
const USER_CONTACT_FIELDS = `
|
|
25
|
+
Id
|
|
26
|
+
ContactId @optional { value }`;
|
|
27
|
+
|
|
28
|
+
function getUserProfileQuery(fields: string): string {
|
|
29
|
+
return `
|
|
30
|
+
query GetUserProfile($userId: ID) {
|
|
31
|
+
uiapi {
|
|
32
|
+
query {
|
|
33
|
+
User(where: { Id: { eq: $userId } }) {
|
|
34
|
+
edges {
|
|
35
|
+
node {${fields}}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}`;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function getUserProfileMutation(fields: string): string {
|
|
44
|
+
return `
|
|
45
|
+
mutation UpdateUserProfile($input: UserUpdateInput!) {
|
|
46
|
+
uiapi {
|
|
47
|
+
UserUpdate(input: $input) {
|
|
48
|
+
Record {${fields}}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}`;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function throwOnGraphQLErrors(errors: { message: string }[] | undefined): void {
|
|
55
|
+
if (errors?.length) {
|
|
56
|
+
console.error("GraphQL request failed", errors);
|
|
57
|
+
throw new Error("An unexpected error occurred");
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Fetches the user profile via GraphQL and returns a flattened record.
|
|
63
|
+
* @param userId - The Salesforce User Id.
|
|
64
|
+
* @param fields - GraphQL field selection (defaults to USER_PROFILE_FIELDS_FULL).
|
|
65
|
+
*/
|
|
66
|
+
export async function fetchUserProfile<T>(
|
|
67
|
+
userId: string,
|
|
68
|
+
fields: string = USER_PROFILE_FIELDS_FULL,
|
|
69
|
+
): Promise<T> {
|
|
70
|
+
const data = await createDataSDK();
|
|
71
|
+
const result = await data.graphql!.query<any>({
|
|
72
|
+
query: getUserProfileQuery(fields),
|
|
73
|
+
variables: {
|
|
74
|
+
userId,
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
throwOnGraphQLErrors(result.errors);
|
|
78
|
+
return flattenGraphQLRecord<T>(result.data?.uiapi?.query?.User?.edges?.[0]?.node);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Fetches the user's associated contact record ID via GraphQL and returns a flattened record.
|
|
83
|
+
* @param userId - The Salesforce User Id.
|
|
84
|
+
*/
|
|
85
|
+
export async function fetchUserContact<T>(userId: string): Promise<T> {
|
|
86
|
+
return fetchUserProfile<T>(userId, USER_CONTACT_FIELDS);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Updates the user profile via GraphQL and returns the flattened updated record.
|
|
91
|
+
* @param userId - The Salesforce User Id.
|
|
92
|
+
* @param values - The field values to update.
|
|
93
|
+
*/
|
|
94
|
+
export async function updateUserProfile<T>(
|
|
95
|
+
userId: string,
|
|
96
|
+
values: Record<string, unknown>,
|
|
97
|
+
): Promise<T> {
|
|
98
|
+
const data = await createDataSDK();
|
|
99
|
+
const result = await data.graphql!.mutate<any>({
|
|
100
|
+
mutation: getUserProfileMutation(USER_PROFILE_FIELDS_FULL),
|
|
101
|
+
variables: {
|
|
102
|
+
input: { Id: userId, User: { ...values } },
|
|
103
|
+
},
|
|
104
|
+
});
|
|
105
|
+
throwOnGraphQLErrors(result.errors);
|
|
106
|
+
return flattenGraphQLRecord<T>(result.data?.uiapi?.UserUpdate?.Record);
|
|
107
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
import { AUTH_REDIRECT_PARAM } from "./authenticationConfig";
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
|
|
9
|
+
/** Email field validation */
|
|
10
|
+
export const emailSchema = z.string().trim().email("Please enter a valid email address");
|
|
11
|
+
|
|
12
|
+
/** Password field validation (minimum 8 characters) */
|
|
13
|
+
export const passwordSchema = z.string().min(8, "Password must be at least 8 characters");
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Shared schema for new password + confirmation fields.
|
|
17
|
+
* Validates password length and matching confirmation.
|
|
18
|
+
*/
|
|
19
|
+
export const newPasswordSchema = z
|
|
20
|
+
.object({
|
|
21
|
+
newPassword: passwordSchema,
|
|
22
|
+
confirmPassword: z.string().min(1, "Please confirm your password"),
|
|
23
|
+
})
|
|
24
|
+
.refine((data) => data.newPassword === data.confirmPassword, {
|
|
25
|
+
message: "Passwords do not match",
|
|
26
|
+
path: ["confirmPassword"],
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* Extracts the startUrl from URLSearchParams, defaulting to '/'.
|
|
32
|
+
*
|
|
33
|
+
* SECURITY NOTE: This function strictly validates the URL to prevent
|
|
34
|
+
* Open Redirect vulnerabilities. It allows only relative paths.
|
|
35
|
+
*
|
|
36
|
+
* @param searchParams - The URLSearchParams object from the current location
|
|
37
|
+
* @returns The start URL for post-authentication redirect
|
|
38
|
+
*/
|
|
39
|
+
export function getStartUrl(searchParams: URLSearchParams): string {
|
|
40
|
+
// 1. Check for the standard redirect parameter
|
|
41
|
+
const url = searchParams.get(AUTH_REDIRECT_PARAM);
|
|
42
|
+
// 2. Security Check: Validation Logic
|
|
43
|
+
if (url && isValidRedirect(url)) {
|
|
44
|
+
return url;
|
|
45
|
+
}
|
|
46
|
+
// 3. Fallback: Default to root
|
|
47
|
+
return "/";
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* [Dev Note] Security: Validates that the redirect URL is a relative path
|
|
52
|
+
* to prevent Open Redirect vulnerabilities.
|
|
53
|
+
*
|
|
54
|
+
* Security Checks:
|
|
55
|
+
* 1. Rejects protocol-relative URLs (//)
|
|
56
|
+
* 2. Rejects backslash usage which some browsers treat as slashes (/\)
|
|
57
|
+
* 3. Rejects control characters
|
|
58
|
+
*/
|
|
59
|
+
function isValidRedirect(url: string): boolean {
|
|
60
|
+
// Basic structure check
|
|
61
|
+
if (!url.startsWith("/") || url.startsWith("//")) return false;
|
|
62
|
+
// Security: Reject backslashes to prevent /\example.com bypasses
|
|
63
|
+
if (url.includes("\\")) return false;
|
|
64
|
+
// Robustness: Ensure it doesn't contain whitespace/control characters
|
|
65
|
+
if (/[^\u0021-\u00ff]/.test(url)) return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Shared response type for authentication endpoints (login/register).
|
|
71
|
+
* Success responses contain `success: true` and `redirectUrl`.
|
|
72
|
+
* Error responses contain `errors` array.
|
|
73
|
+
*/
|
|
74
|
+
export interface AuthResponse {
|
|
75
|
+
success?: boolean;
|
|
76
|
+
redirectUrl?: string | null;
|
|
77
|
+
errors?: string[];
|
|
78
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
* For full license text, see the LICENSE.txt file
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* [Dev Note] Centralized configuration for Auth routes.
|
|
8
|
+
* Each route contains both the path and page title.
|
|
9
|
+
* Using constants prevents typos in route paths across the application.
|
|
10
|
+
*/
|
|
11
|
+
export const ROUTES = {
|
|
12
|
+
LOGIN: {
|
|
13
|
+
PATH: "/login",
|
|
14
|
+
TITLE: "Login | MyApp",
|
|
15
|
+
},
|
|
16
|
+
REGISTER: {
|
|
17
|
+
PATH: "/register",
|
|
18
|
+
TITLE: "Create Account | MyApp",
|
|
19
|
+
},
|
|
20
|
+
FORGOT_PASSWORD: {
|
|
21
|
+
PATH: "/forgot-password",
|
|
22
|
+
TITLE: "Recover Password | MyApp",
|
|
23
|
+
},
|
|
24
|
+
RESET_PASSWORD: {
|
|
25
|
+
PATH: "/reset-password",
|
|
26
|
+
TITLE: "Reset Password | MyApp",
|
|
27
|
+
},
|
|
28
|
+
PROFILE: {
|
|
29
|
+
PATH: "/profile",
|
|
30
|
+
TITLE: "My Profile | MyApp",
|
|
31
|
+
},
|
|
32
|
+
CHANGE_PASSWORD: {
|
|
33
|
+
PATH: "/change-password",
|
|
34
|
+
TITLE: "Change Password | MyApp",
|
|
35
|
+
},
|
|
36
|
+
} as const;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* [Dev Note] Centralized configuration for API endpoints.
|
|
40
|
+
* These are server-side endpoints, not client-side routes.
|
|
41
|
+
*/
|
|
42
|
+
export const API_ROUTES = {
|
|
43
|
+
// W-21253864: Logout URL integration is not currently supported
|
|
44
|
+
LOGOUT: "/secur/logout.jsp",
|
|
45
|
+
} as const;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* [Dev Note] Query parameter key used to store the return URL.
|
|
49
|
+
* e.g. /login?startUrl=/profile
|
|
50
|
+
*/
|
|
51
|
+
export const AUTH_REDIRECT_PARAM = "startUrl";
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Placeholder text constants for authentication form inputs.
|
|
55
|
+
*/
|
|
56
|
+
export const AUTH_PLACEHOLDERS = {
|
|
57
|
+
EMAIL: "e.g. name@example.com",
|
|
58
|
+
PASSWORD: "Enter your password",
|
|
59
|
+
PASSWORD_CREATE: "Create a password",
|
|
60
|
+
PASSWORD_CONFIRM: "Re-enter your password",
|
|
61
|
+
PASSWORD_NEW: "Enter new password",
|
|
62
|
+
PASSWORD_NEW_CONFIRM: "Re-enter new password",
|
|
63
|
+
FIRST_NAME: "e.g. Alex",
|
|
64
|
+
LAST_NAME: "e.g. Smith",
|
|
65
|
+
USERNAME: "e.g. asmith",
|
|
66
|
+
} as const;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Copyright (c) 2026, Salesforce, Inc.,
|
|
3
|
+
All rights reserved.
|
|
4
|
+
For full license text, see the LICENSE.txt file
|
|
5
|
+
-->
|
|
6
|
+
<script setup lang="ts">
|
|
7
|
+
import { onMounted, ref } from "vue";
|
|
8
|
+
import { useRoute } from "vue-router";
|
|
9
|
+
import { createDataSDK } from "@salesforce/platform-sdk";
|
|
10
|
+
import { getStartUrl } from "../authHelpers";
|
|
11
|
+
import { queryToSearchParams } from "../utils/queryToSearchParams";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Social Login (IDP) component for Vue Experience Cloud sites.
|
|
15
|
+
*
|
|
16
|
+
* The Vue analogue of the React `SocialLogin`. Replicates the OOTB
|
|
17
|
+
* community_login/socialLogin LWC behavior, which does not render on
|
|
18
|
+
* Site-Container sites due to a platform restriction.
|
|
19
|
+
*
|
|
20
|
+
* Behavior:
|
|
21
|
+
* - On mount, fetches configured Auth Providers + SAML Providers.
|
|
22
|
+
* - If a single IDP is configured and username/password is disabled, the
|
|
23
|
+
* backend returns an autoRedirectUrl and we redirect immediately.
|
|
24
|
+
* - Renders a button per provider; clicking initiates the OAuth/SAML flow.
|
|
25
|
+
*
|
|
26
|
+
* Backend: UIBundleSocialLoginConfig.cls (Apex REST endpoint).
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
interface AuthProviderInfo {
|
|
30
|
+
developerName: string;
|
|
31
|
+
friendlyName: string;
|
|
32
|
+
iconUrl: string | null;
|
|
33
|
+
ssoUrl: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface SamlProviderInfo {
|
|
37
|
+
id: string;
|
|
38
|
+
masterLabel: string;
|
|
39
|
+
ssoUrl: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
interface SocialLoginConfigResponse {
|
|
43
|
+
authProviders: AuthProviderInfo[];
|
|
44
|
+
samlProviders: SamlProviderInfo[];
|
|
45
|
+
autoRedirectUrl: string | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
withDefaults(
|
|
49
|
+
defineProps<{
|
|
50
|
+
/** Whether to show header text above buttons. @default true */
|
|
51
|
+
showHeader?: boolean;
|
|
52
|
+
/** Header text. @default "Or log in using:" */
|
|
53
|
+
headerText?: string;
|
|
54
|
+
}>(),
|
|
55
|
+
{
|
|
56
|
+
showHeader: true,
|
|
57
|
+
headerText: "Or log in using:",
|
|
58
|
+
},
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
const route = useRoute();
|
|
62
|
+
|
|
63
|
+
const authProviders = ref<AuthProviderInfo[]>([]);
|
|
64
|
+
const samlProviders = ref<SamlProviderInfo[]>([]);
|
|
65
|
+
|
|
66
|
+
async function fetchSocialLoginConfig(startUrl: string): Promise<SocialLoginConfigResponse | null> {
|
|
67
|
+
try {
|
|
68
|
+
const sdk = await createDataSDK();
|
|
69
|
+
const response = await sdk.fetch!(
|
|
70
|
+
`/services/apexrest/auth/social-login-config?startURL=${encodeURIComponent(startUrl)}`,
|
|
71
|
+
{
|
|
72
|
+
method: "GET",
|
|
73
|
+
headers: { Accept: "application/json" },
|
|
74
|
+
},
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
if (!response.ok) {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return await response.json();
|
|
82
|
+
} catch {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function goTo(url: string): void {
|
|
88
|
+
window.location.assign(url);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
onMounted(async () => {
|
|
92
|
+
// vue-router exposes query as a record; reuse the shared validation helper.
|
|
93
|
+
const startUrl = getStartUrl(queryToSearchParams(route.query));
|
|
94
|
+
|
|
95
|
+
const config = await fetchSocialLoginConfig(startUrl);
|
|
96
|
+
if (!config) return;
|
|
97
|
+
|
|
98
|
+
if (config.autoRedirectUrl) {
|
|
99
|
+
window.location.assign(config.autoRedirectUrl);
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
authProviders.value = config.authProviders || [];
|
|
104
|
+
samlProviders.value = config.samlProviders || [];
|
|
105
|
+
});
|
|
106
|
+
</script>
|
|
107
|
+
|
|
108
|
+
<template>
|
|
109
|
+
<div v-if="authProviders.length > 0 || samlProviders.length > 0" class="mt-6">
|
|
110
|
+
<div v-if="showHeader" class="relative">
|
|
111
|
+
<div class="absolute inset-0 flex items-center">
|
|
112
|
+
<span class="w-full border-t" />
|
|
113
|
+
</div>
|
|
114
|
+
<div class="relative flex justify-center text-xs uppercase">
|
|
115
|
+
<span class="bg-background px-2 text-muted-foreground">{{ headerText }}</span>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
<div class="mt-4 grid gap-2">
|
|
120
|
+
<button
|
|
121
|
+
v-for="provider in authProviders"
|
|
122
|
+
:key="provider.developerName"
|
|
123
|
+
type="button"
|
|
124
|
+
:aria-label="`Sign in with ${provider.friendlyName}`"
|
|
125
|
+
class="inline-flex w-full items-center justify-center gap-2 rounded-md border border-input bg-background px-4 py-2 text-sm font-medium shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
|
|
126
|
+
@click="goTo(provider.ssoUrl)"
|
|
127
|
+
>
|
|
128
|
+
<img
|
|
129
|
+
v-if="provider.iconUrl"
|
|
130
|
+
:src="provider.iconUrl"
|
|
131
|
+
alt=""
|
|
132
|
+
class="h-4 w-4"
|
|
133
|
+
aria-hidden="true"
|
|
134
|
+
/>
|
|
135
|
+
<span>{{ provider.friendlyName }}</span>
|
|
136
|
+
</button>
|
|
137
|
+
|
|
138
|
+
<button
|
|
139
|
+
v-for="provider in samlProviders"
|
|
140
|
+
:key="provider.id"
|
|
141
|
+
type="button"
|
|
142
|
+
:aria-label="`Sign in with ${provider.masterLabel}`"
|
|
143
|
+
class="inline-flex w-full items-center justify-center gap-2 rounded-md border border-input bg-background px-4 py-2 text-sm font-medium shadow-sm transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring"
|
|
144
|
+
@click="goTo(provider.ssoUrl)"
|
|
145
|
+
>
|
|
146
|
+
<span>{{ provider.masterLabel }}</span>
|
|
147
|
+
</button>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
</template>
|