1.0.1 • Published 11 days ago

@singularsystems/neo-authorisation v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
11 days ago

Neo Authorisation

The neo-authorisation package is the front ent client for the neo authorisation server service.

Setup

In your app setup, register the authorisation module:

import { AuthorisationAppModule } from '@singularsystems/neo-authorisation';

appService.registerModule(AuthorisationAppModule);

Config

Add the following to your main config model:

import { IAuthorisationConfig } from '@singularsystems/neo-authorisation';

public get authorisationConfig(): IAuthorisationConfig {
    return {
        authorisationServerApiPath: this.authorisationServerApi.apiPath
    }
}

Then register the config in your app module:

import { AuthorisationTypes } from '@singularsystems/neo-authorisation';

container.bindConfig(AuthorisationTypes.ConfigModel, (c: Config) => c.authorisationConfig);

View

Add the authorisation route to your routes service:

import { SecurityRoute } from '@singularsystems/neo-authorisation';

or

Create a route referencing the security view:

import { AuthorisationRoles, UserGroupsView } from '@singularsystems/neo-authorisation';

const SecurityRoute = { 
    name: "User Access", 
    path: "/security/useraccess", 
    component: UserGroupsView, 
    role: AuthorisationRoles.UserAccess.Access }

Add the styles to your app component:

import "@singularsystems/neo-authorisation/styles/authorisation.scss";
1.0.1

11 days ago

1.0.0

2 months ago

1.0.0-beta.1

6 months ago

1.0.0-beta.0

1 year ago

0.10.9

1 year ago

0.10.10

1 year ago

0.10.5

1 year ago

0.10.6

1 year ago

0.10.7

1 year ago

0.10.8

1 year ago

1.0.0-alpha.2

2 years ago

1.0.0-alpha.1

2 years ago

0.10.3

2 years ago

0.10.4

2 years ago

0.10.2

2 years ago

0.10.1

2 years ago

0.10.0

2 years ago