vulcain-ext-stsauthentication
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Extension to provide openid authentication

This extension will be tested with IdentityServer

How to use it

Start a identity server instance

See this sample to start an instance with docker

Install package with

npm install vulcain-ext-express --save

Declare an environment variable

exemple

vulcainStsAuthority="http://localhost:5001"

Create a new adapter extending ExpressAdapter which will replace the default adapter

import { ExpressAdapter } from 'vulcain-ext-express';

// Declare your new adapter before running application
@Injectable(LifeTime.Singleton, DefaultServiceNames.ServerAdapter )
class MyAdapter extends ExpressAdapter {
    initializeRoutes(express) {
        // Add express initialization here
    }
}

// MyAdapter will be use automatically
let app = new ApplicationBuilder('Domain')
    .runAsync();

Readme

Keywords

none

Package Sidebar

Install

npm i vulcain-ext-stsauthentication

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Last publish

Collaborators

  • ametge