1.0.3 • Published 8 months ago

@singularsystems/neo-authorisation v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months 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.3

8 months ago

1.0.2

9 months ago

1.0.1

1 year ago

1.0.0

1 year ago

1.0.0-beta.1

2 years ago

1.0.0-beta.0

2 years ago

0.10.9

2 years ago

0.10.10

2 years ago

0.10.5

2 years ago

0.10.6

2 years ago

0.10.7

2 years ago

0.10.8

2 years ago

1.0.0-alpha.2

3 years ago

1.0.0-alpha.1

3 years ago

0.10.3

3 years ago

0.10.4

3 years ago

0.10.2

4 years ago

0.10.1

4 years ago

0.10.0

4 years ago