Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@asgardeo/vue

asgardeo75Apache-2.00.0.1TypeScript support: included

Vue SDK for Asgardeo - Authentication and Identity Management

asgardeo, authentication, identity, oauth, oidc, vue, vue3, login, sso, identity-management

readme

@asgardeo/vue

Vue Wrapper to build customizable login UIs for Asgardeo or Identity Server

npm (scoped) npm License

Prerequisites

  • Vue.js 3.4.0 or higher

Installation

# With npm
npm install @asgardeo/vue

# With pnpm
pnpm add @asgardeo/vue

# With yarn
yarn add @asgardeo/vue

Basic Setup

import { createApp } from 'vue'
import { AsgardeoAuth } from '@asgardeo/vue'

const app = createApp(App)

app.use(AsgardeoAuth, {
  signInRedirectURL: "http://localhost:3000",
  signOutRedirectURL: "http://localhost:3000",
  clientID: "<your-client-id>",
  baseUrl: "https://api.asgardeo.io/t/<org-name>",
  scope: ["openid", "profile"]
})

app.mount('#app')

License

Licenses this source under the Apache License, Version 2.0 LICENSE, You may not use this file except in compliance with the License.