2.2.3 • Published 1 year ago

quasar-app-extension-sso-upc v2.2.3

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
1 year ago

Quasar App Extension : SSO UPC

A Quasar extension for validate into UPC SSO authentication server and obtain a JWT with user profile from own API

Dependencies

  • Both axios as well as Vuex are required for this extension.

Require a server api-cas-jwt running for validate and return jwt

Install

Run extension

quasar ext add sso-upc

Prompts

The installation requests the routes to be used to communicate with the backend and adds them to the .env file so that they can be modified later

Funcionality

The authentication logic is performed inside a Vuex store. this.$auth provides a helper to access the functionality in the store and this.$api provides a instance for secure api calls.

FunctionFunctionality
$auth.logoutLogs out the current user and redirect to login page.
$auth.isLoggedInReturns a boolean to determine if the user is logged in.
$auth.getProfileGet the complete profile of the auth Bearer JWT.
$auth.userDataGet the user data send by optional own API profile.
$auth.isAdminReturns a boolean to determine if the user has admin role.
$auth.personNameGet the name of logged user.
$auth.personCompleteNameGet the complete name of logged user.
$auth.personEmailGet the email of logged user.
$auth.userPhotoGet the photo of logged user.
$auth.hasRoles(roles)Returns a boolean to determine if the user has any of roles.

Uninstall

quasar ext remove sso-upc

Info

The profile data depends on the parameters returned by the API-CAS-JWT server

2.2.1

1 year ago

2.2.3

1 year ago

2.2.2

1 year ago

2.1.1

2 years ago

2.1.0

2 years ago

3.0.1

2 years ago

2.0.9

2 years ago

2.0.8

2 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.7

3 years ago

2.0.6

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

2.0.1

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago