0.0.18 • Published 1 year ago

aurelia2-auth v0.0.18

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

aurelia2-auth

A port of the ever-popular v1 plugin aurelia-auth (https://github.com/paulvanbladel/aurelia-auth) for Aurelia 2.

Installing it

npm install aurelia2-auth or yarn add aurelia2-auth

Configure your app

Inside of your main.ts/main.js file register the plugin on the register method:

import { AureliaAuthConfiguration } from 'aurelia2-auth'; 

Aurelia.register(AureliaAuthConfiguration);

To change the configuration settings:

import { AureliaAuthConfiguration } from 'aurelia2-auth'; 

const configOptions = {
  // Some options
};

Aurelia.register(AureliaAuthConfiguration.configure(configOptions);

Differences between aurelia-auth v1 and this version

There are a few differences in Aurelia 2 which mean the plugin works slightly differently.

  • There are no longer router pipeline steps, instead, you register a router hook which is exported as AuthorizeHook and can be supplied to register or the dependencies in a component
  • The plugin is called aurelia2-auth
0.0.18

1 year ago

0.0.14

3 years ago

0.0.15

3 years ago

0.0.16

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago