0.0.18 • Published 4 months ago

aurelia2-auth v0.0.18

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months 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

4 months ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.16

2 years ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago