@asgardeo/vue
v0.4.4
Published
Vue 3 SDK for Asgardeo - Authentication and Identity Management
Maintainers
Readme
Overview
The Asgardeo Vue SDK provides a streamlined way to integrate secure authentication and user management into your Vue.js applications. Built for Vue 3, it offers a comprehensive set of composables, components, and utilities to handle authentication flows, user profiles, and multi-tenancy features.
Key Features
- Easy Integration: Simple setup with the
AsgardeoPluginand provider components - Composable API: Vue 3 composables for reactive authentication state management
- Pre-built Components: Ready-to-use components for sign-in, sign-up, user profiles, and more
- Multi-Tenancy Support: Built-in organization/workspace management capabilities
- Customizable UI: Primitive components and styling options for seamless integration
- International Support: Multi-language support with easy localization
- Type-Safe: Full TypeScript support for better developer experience
Quick Start
Get started with Asgardeo in your Vue application in minutes. Follow our Vue Quick Start Guide for step-by-step instructions on integrating authentication into your app.
Installation
# Using npm
npm install @asgardeo/vue
# Using pnpm
pnpm add @asgardeo/vue
# Using yarn
yarn add @asgardeo/vueSupported Features
Composables
useAsgardeo()- Main SDK client accessuseUser()- User profile and authentication stateuseOrganization()- Organization/workspace managementuseI18n()- InternationalizationuseTheme()- Theme customizationuseBranding()- Branding customizationuseFlow()- Authentication flow controluseFlowMeta()- Flow metadata access
Components
Control
SignedIn- Renders children only when user is authenticatedSignedOut- Renders children only when user is not authenticatedLoading- Renders children while authentication state is loadingUserComponent- Access user information with scoped slot patternOrganizationComponent- Access organization context with scoped slot pattern
Actions
SignInButton/BaseSignInButton- Sign-in button (styled and unstyled)SignOutButton/BaseSignOutButton- Sign-out button (styled and unstyled)SignUpButton/BaseSignUpButton- Sign-up button (styled and unstyled)
Presentation
SignIn/BaseSignIn- Embedded sign-in formSignUp/BaseSignUp- Embedded sign-up formUserProfileComponent/BaseUserProfile- User profile displayUserDropdown/BaseUserDropdown- User menu dropdownOrganizationList/BaseOrganizationList- Organization listingOrganizationSwitcher/BaseOrganizationSwitcher- Organization switcherOrganizationProfile/BaseOrganizationProfile- Organization profileCreateOrganization/BaseCreateOrganization- Organization creation formAcceptInvite/BaseAcceptInvite- Invitation acceptanceInviteUser/BaseInviteUser- User invitation formLanguageSwitcher/BaseLanguageSwitcher- Language selection
Auth Flow
Callback- Handle OAuth callback redirect
Social Login Adapters
GoogleButton- Sign in with GoogleFacebookButton- Sign in with FacebookGitHubButton- Sign in with GitHubMicrosoftButton- Sign in with Microsoft
Primitives
Button,Card,Alert,TextField,PasswordField,Select,Checkbox,DatePicker,OtpField,Typography,Divider,Logo,Spinner
Utilities
createAsgardeoGuard- Vue Router navigation guard for protected routescreateCallbackRoute- Generate a callback route record for Vue RouterhandleWebAuthnAuthentication- WebAuthn/passkey supporthasAuthParamsInUrl- Detect OAuth parameters in URLnavigate- Programmatic navigation helperhttp- HTTP client with token management
Documentation
Support
For support and questions:
Contributing
We welcome contributions! Please see our Contributing Guidelines for more details.
License
Licenses this source under the Apache License, Version 2.0 LICENSE, You may not use this file except in compliance with the License.
